Mercurial > hg
diff tests/test-glog.t @ 16174:0a73c4bd9f47
graphlog: implement --follow-first
log --graph --follow-first FILE cannot be compared with the regular version
because it never worked: --follow-first is not taken in account in
walkchangerevs() fast path and is explicitely bypassed in FILE case in
walkchangerevs() nested iterate() function.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sat, 25 Feb 2012 22:11:36 +0100 |
parents | 9178d284b880 |
children | 46a96cc830c2 |
line wrap: on
line diff
--- a/tests/test-glog.t Sat Feb 25 22:11:36 2012 +0100 +++ b/tests/test-glog.t Sat Feb 25 22:11:36 2012 +0100 @@ -1618,3 +1618,27 @@ nodetag 1 nodetag 0 +Test --follow-first + + $ hg up -q 3 + $ echo ee > e + $ hg ci -Am "add another e" e + created new head + $ hg merge --tool internal:other 4 + 0 files updated, 1 files merged, 1 files removed, 0 files unresolved + (branch merge, don't forget to commit) + $ echo merge > e + $ hg ci -m "merge 5 and 4" + $ testlog --follow-first + ('group', ('func', ('symbol', '_followfirst'), None)) + +Cannot compare with log --follow-first FILE as it never worked + + $ hg log -G --print-revset --follow-first e + ('group', ('group', ('func', ('symbol', '_followfirst'), ('string', 'e')))) + $ hg log -G --follow-first e --template '{rev} {desc|firstline}\n' + @ 6 merge 5 and 4 + |\ + o | 5 add another e + | | +