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

Martin Geisler mg at lazybytes.net
Thu Jul 15 03:28:56 CDT 2010


Mads Kiilerich <mads at kiilerich.com> writes:

>  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".

Ah, even better.

> 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.

Yeah, you're right.

-- 
Martin Geisler

Mercurial links: http://mercurial.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100715/a57b2284/attachment.pgp>


More information about the Mercurial-devel mailing list