[issue3070] hg log - incomplete results for a single file

Piotr Klecha bugs at mercurial.selenic.com
Mon Oct 24 01:24:16 CDT 2011


New submission from Piotr Klecha <pklecha at forcom.com.pl>:

hg log doesn't display all revisions if identical changes were made on 
parallel branches. Here's an example:

hg init repo
cd repo
echo Rysiu > Rysiu
hg add
hg commit -m "Rysiu 1"
echo Lysy >> Rysiu
hg commit -m "Rysiu 2"
hg update 0
echo Lysy >> Rysiu
hg commit -m "Rysiu 2a"

Running hg log on file displays only first two revisions:
hg log --template "{rev} {desc}\n" Rysiu
1 Rysiu 2
0 Rysiu 1

However, results are correct if file name is replaced with a revset (they 
are displayed in reverse order, though):
hg log --template "{rev} {desc}\n" -r "file(Rysiu)"
0 Rysiu 1
1 Rysiu 2
2 Rysiu 2a

----------
messages: 17736
nosy: czarnyczarodziej
priority: bug
status: unread
title: hg log - incomplete results for a single file

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3070>
____________________________________________________


More information about the Mercurial-devel mailing list