[Bug 4289] New: -M changes order of records in hg log
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Tue Jun 24 03:12:05 CDT 2014
http://bz.selenic.com/show_bug.cgi?id=4289
Priority: normal
Bug ID: 4289
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: -M changes order of records in hg log
Severity: bug
Classification: Unclassified
OS: Windows
Reporter: peterhull90 at gmail.com
Hardware: PC
Status: UNCONFIRMED
Version: 3.0.1
Component: Mercurial
Product: Mercurial
If the -M flag and an explicit revision range is given to hg log, the order can
be reversed compared to what is expected.
Reported to the mailing list
http://www.selenic.com/pipermail/mercurial/2014-June/047249.html
Example: (taken from Matt Mackall's reply to the list)
Observed:
$ hg log -M -q -r 10:9
9:b4d0c3786ad3
10:e76ed1e480ef
Expected:
$ hg log -M -q -r 10:9
10:e76ed1e480ef
9:b4d0c3786ad3
Further information:
# Correct on version 2.9 (i.e. this is a regression from previous)
$ hg29 log -q -M -r 10:9
10:e76ed1e480ef
9:b4d0c3786ad3
# Correct on current version without -M
$ hg log -q -r 10:9
10:e76ed1e480ef
9:b4d0c3786ad3
# Correct on current version with a revset
$ hg log -M -q -r "(10:9)"
10:e76ed1e480ef
9:b4d0c3786ad3
# Correct on current version with -M in revset
$ hg log -q -r 'not merge() and 10:9'
10:e76ed1e480ef
9:b4d0c3786ad3
Work around:
Use a revset, i.e.
$ hg log -M -q -r "(10:9)"
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list