[Bug 5880] New: Regression in behaviour of fetching commits

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed May 9 17:18:10 UTC 2018


https://bz.mercurial-scm.org/show_bug.cgi?id=5880

            Bug ID: 5880
           Summary: Regression in behaviour of fetching commits
           Product: Mercurial
           Version: 4.6
          Hardware: PC
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: marcin at python-blog.com
                CC: mercurial-devel at mercurial-scm.org

We,re 

investigating an update in RhodeCode for 4.6.0 release. We found odd regression
compared to other versions. In repo instance if you specify a LONG it raises an
unexpected error.

ipdb> repo[123]
<changectx f9ad74e953fc>
ipdb> repo[123L]
*** TypeError: object of type 'long' has no len()


Here's a traceback for reference:

Traceback (most recent call last):
  File "/mnt/hgfs/shared/workspace/rhodecode-vcsserver/vcsserver/hg.py", line
76, in wrapper
    return func(*args, **kwargs)
  File "/mnt/hgfs/shared/workspace/rhodecode-vcsserver/vcsserver/hg.py", line
543, in lookup
    ctx = repo[revision]
  File
"/nix/store/dlqz9al061ak61xg6cmia89xmkn89frm-python2.7-mercurial-4.6/lib/python2.7/site-packages/mercurial/localrepo.py",
line 839, in __getitem__
    return context.changectx(self, changeid)
  File
"/nix/store/dlqz9al061ak61xg6cmia89xmkn89frm-python2.7-mercurial-4.6/lib/python2.7/site-packages/mercurial/context.py",
line 433, in __init__
    if len(changeid) == 20:
TypeError: object of type 'long' has no len()

Is this change intended? It looks like context lost support for LONG detection
since 4.5.3 version.

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


More information about the Mercurial-devel mailing list