Bug 2492 - hg log -r rev file fails to work in certain cases in 1.7
Summary: hg log -r rev file fails to work in certain cases in 1.7
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: normal bug
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-12 06:25 UTC by brodie
Modified: 2012-05-13 04:47 UTC (History)
4 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brodie 2010-11-12 06:25 UTC
As of the following changeset, hg log -r rev file fails to work in certain cases:

changeset:   11899:99cafcae25d9
user:        Nicolas Dumazet <nicdumz.commits@gmail.com>
date:        Sun Aug 15 23:17:53 2010 +0900
summary:     log: do not --follow file that is deleted and recreated later (issue732)

rev can be any kind of revision or revset.

Test case:

$ hg init foo
$ cd foo
$ echo a > a
$ hg ci -Am a
adding a
$ echo a >> a
$ hg ci -Am aa
$ hg log -r 0 a

The last command will return no output. The following command will, however, work:

$ hg log -r 1 a

Note that this doesn't affect a command like this:

$ hg log -r '0 and file("a")'
Comment 1 Nicolas Dumazet 2010-11-12 19:06 UTC
yep, and the patch fixing it is here:
http://markmail.org/message/wahat6ymrfi2mqew and will probably be in for 1.7.1

Cheers!
Comment 2 HG Bot 2010-11-12 21:00 UTC
Fixed by http://hg.intevation.org/mercurial/crew/rev/7916a84c0758
Nicolas Dumazet <nicdumz.commits@gmail.com>
log: fix log -rREV FILE when REV isnt the last filerev (issue2492)
Comment 3 Bugzilla 2012-05-12 09:14 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:14 EDT  ---

This bug was previously known as _bug_ 2492 at http://mercurial.selenic.com/bts/issue2492