[PATCH] test-log: Add test for "hg log -pf" (issue647)

Mads Kiilerich mads at kiilerich.com
Wed Jul 14 18:10:09 CDT 2010


  Martin Geisler wrote, On 07/14/2010 09:32 PM:
> Mads Kiilerich<mads at kiilerich.com>  writes:
>
>> # HG changeset patch
>> # User Joel Rosdahl<joel at rosdahl.net>
>> # Date 1278621855 -7200
>> # Node ID 1d396a88d2de4ed984ee3ae5056087a13e8d01db
>> # Parent  4484a7b661f2f79f142c06c7ab1d9b58a7c3a608
>> test-log: Add test for "hg log -pf" (issue647)
> Thanks, I hope this helps document the current behavior so that it's
> easier to see what happens if/when this is touched in the future.

Note that the test as you pushed it shows the correct behavior and 
nothing "controversial".

If you want documentation of current behavior we could add something like

--- a/tests/test-log
+++ b/tests/test-log
@@ -36,6 +36,11 @@
  echo % log -vf dir/b
  hg log -vf dir/b

+echo % log -f b - will incorrectly show rev 0 and 1 because of 1327
+hg log -f --template '{rev} {desc}\n' b
+echo % log b - will incorrectly show rev 1 because of 1327
+hg log --template '{rev} {desc}\n' b
+
  echo '% log copies with --copies'
  hg log -vC --template '{rev} {file_copies}\n'
  echo '% log copies switch without --copies, with old filecopy template'

... but I don't think that is a good idea.

My comment in efbc09fdefd8 about rev 3 being shown when following e 
seems to be completely nonsense. I can't reproduce it.

/Mads



More information about the Mercurial-devel mailing list