eclipse で hg bisect を実行すると、過去にマークした不良品と商品がすべて表示されるので気に入っています。
コマンドラインでその情報を取得する方法はありますか?
4 に答える
10
そのための revset 述語があります。
"bisected(string)"
Changesets marked in the specified bisect state (good, bad, skip).
今後の参考のために、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
于 2011-10-13T09:03:25.587 に答える
6
@adambox のコメントで示唆されているように、これは機能するはずです。
hg log -r "bisect(good) or bisect(bad)" --template "{rev}:{node|short} {bisect}\n"
于 2015-09-30T20:28:37.340 に答える
0
これは、述語が使用可能になったので機能する bash スクリプト (私はそれを と呼びましたbisectstate
)です。bisected()
(以前colorex
は色できれいにしましたが、インストールしていない場合は削除できます。)
#!/bin/bash -f
style() {
echo "{rev}$1 {author|person} {date|shortdate} {desc|firstline}\n"
}
(hg log -r 'not . and bisect(good)' --template "`style -good:`" ;
hg log -r '. and bisect(range) and not (bisect(good) or bisect(bad) or bisect(skip))' --template "`style -cur:`" ;
hg log -r "not . and bisect(bad)" --template "`style -bad:`" ;
hg log -r 'not . and bisect(skip)' --template "`style -skip:`" ;
hg log -r '. and bisect(good)' --template "`style -cur=good:`" ;
hg log -r '. and bisect(bad)' --template "`style -cur=bad:`" ;
hg log -r '. and bisect(skip)' --template "`style -cur=skip:`" ;
# Include the intermediate, unmarked changes in the bisect range.
hg log -r "bisect(range) and not (. or bisect(good) or bisect(bad) or bisect(skip))" --template "`style`"
) \
| sort | colorex -r bad: -b good: -g 'cur[=:]'
出力は次のようになります。
于 2013-02-14T16:46:42.583 に答える