[Bug 3669] New: revset being started with 40 hexadecimal letters causes unexpected result at "hg log"

bugzilla-daemon at bz.selenic.com bugzilla-daemon at bz.selenic.com
Sun Oct 21 09:26:39 CDT 2012


http://bz.selenic.com/show_bug.cgi?id=3669

          Priority: normal
            Bug ID: 3669
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: revset being started with 40 hexadecimal letters
                    causes unexpected result at "hg log"
          Severity: bug
    Classification: Unclassified
                OS: All
          Reporter: foozy at lares.dti.ne.jp
          Hardware: All
            Status: UNCONFIRMED
           Version: 2.3
         Component: Mercurial
           Product: Mercurial

e410be860393 (released as Mercurial 2.3) introduced the issue
that the revset program being started with 40 hexadecimal letters
caused unexpected result at "hg log" execution.

This issue was already fixed by bde1185f406c (released as 2.3.1), but
there is no test to examine whether this issue is certainly fixed or
not: no test fails even if bde1185f406c is backed out.

So, I opened this issue report to assign ID to this issue, and
add test script with issue ID.

This issue can be reproduced by the script below:

  hg init
  echo a > a
  hg add a
  hg commit -m '#0'
  echo 1 >> a
  hg commit -m '#1'
  TIP=`hg tip --template '{node}'`

  hg log -r "${TIP}" --template '{rev}\n'
  hg log -r "${TIP}^1" --template '{rev}\n'
  hg debugrevspec "${TIP}"
  hg debugrevspec "${TIP}^1"

This script is expected to show:

  1 # as TIP
  0 # as TIP^1
  1 # as TIP
  0 # as TIP^1

But with Mercurial 2.3, this shows:

  1
  1
  1
  0

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list