[issue1607] hg log -r start:end misses some changesets when end does not exist

Iwan Luijks mercurial-bugs at selenic.com
Sat Apr 11 13:03:33 CDT 2009


New submission from Iwan Luijks <iwanluijks at gmail.com>:

Beforehand I want to note that changeset 3 is tagged as tip, being it my 
latest revision, and that the platform I tested it on was Windows 2000 
Advanced Server with SP4 and all the latest updates.

Whenever I execute the command `hg log` I get the following result:
changeset:   3:931db044d12c
tag:         tip
user:        Administrator at iwan-6046d81414
date:        Sat Apr 11 17:01:18 2009 +0200
summary:     [no commit message]

changeset:   2:4d59d3e193b8
user:        Administrator at iwan-6046d81414
date:        Sat Apr 11 17:00:40 2009 +0200
summary:     [no commit message]

changeset:   1:ecfec6185d01
user:        Administrator at iwan-6046d81414
date:        Sat Apr 11 16:59:02 2009 +0200
summary:     [no commit message]

changeset:   0:b941e5c7e13e
user:        Administrator at iwan-6046d81414
date:        Sat Apr 11 16:52:32 2009 +0200
summary:     [no commit message]


This itself doesn't seem to give any problems, just as `hg log -r 0:3` doesn't 
give any problems. The problem lies in the fact of inserting a revision number 
which doesn't exist as the end of the range. For example, the following 
command `hg log -r 0:4` returns only changeset 0 to 2 where I was expecting to 
also get changeset 3 in return:
changeset:   0:b941e5c7e13e
user:        Administrator at iwan-6046d81414
date:        Sat Apr 11 16:52:32 2009 +0200
summary:     [no commit message]

changeset:   1:ecfec6185d01
user:        Administrator at iwan-6046d81414
date:        Sat Apr 11 16:59:02 2009 +0200
summary:     [no commit message]

changeset:   2:4d59d3e193b8
user:        Administrator at iwan-6046d81414
date:        Sat Apr 11 17:00:40 2009 +0200
summary:     [no commit message]


It's not really that big of an issue, but it might look better when corrected.

----------
files: hglog.txt
messages: 9077
nosy: iwanluijks
priority: bug
status: unread
title: hg log -r start:end misses some changesets when end does not exist

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1607>
____________________________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hglog.txt
Url: http://selenic.com/pipermail/mercurial-devel/attachments/20090411/df83323a/attachment.txt 


More information about the Mercurial-devel mailing list