如何从mercurial获得bisect的当前状态(好/坏修订的历史)

Jos*_*erg 10 mercurial bisect

当我在日食中做一个hg bisect时,我喜欢我能看到过去曾经标记过的所有坏东西和商品.
有没有办法在命令行获取该信息?

Ida*_*n K 10

有一个revset谓词:

"bisected(string)"  
 Changesets marked in the specified bisect state (good, bad, skip).
Run Code Online (Sandbox Code Playgroud)

资源

为了将来参考,Mercurial 2.0将引入一个改进版本(旧版本将继续工作):

"bisect(string)"
  Changesets marked in the specified bisect status:

  - "good", "bad", "skip": csets explicitly marked as good/bad/skip
  - "goods", "bads"      : csets topologicaly good/bad
  - "range"              : csets taking part in the bisection
  - "pruned"             : csets that are goods, bads or skipped
  - "untested"           : csets whose fate is yet unknown
  - "ignored"            : csets ignored due to DAG topology
Run Code Online (Sandbox Code Playgroud)

  • +1用于发现bisect revset.一个有效的例子吗?我猜是这样的:`hg log -r"一分为二(好)或二分(坏)"`? (3认同)
  • 是的,那还没有.它将在2.0 IIRC,所以一定要检查11月.目前,两种不同的呼叫方式. (2认同)
  • @icabod我喜欢这个,来自我的同事:`hg log -r"bisect(good)或bisect(bad)" - template"{node | short} {bisect} \n"`它只给你哈希和好/坏 (2认同)

Kaf*_*afu 5

正如@adambox的评论中所建议的,这应该有效:

hg log -r "bisect(good) or bisect(bad)" --template "{rev}:{node|short} {bisect}\n"
Run Code Online (Sandbox Code Playgroud)