[Bug 5287] New: Crash when transplanting to old repository

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Fri Jul 8 11:40:05 EDT 2016


            Bug ID: 5287
           Summary: Crash when transplanting to old repository
           Product: Mercurial
           Version: 2.8.2
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: transplant
          Assignee: bugzilla at selenic.com
          Reporter: eugene at funcall.org
                CC: mercurial-devel at selenic.com

In an attempt to transplant an unrelated newer (2011-2016) repository over an
older (2009) repository, mercurial crashes.

hg transplant -s ../pj/ --m 0
searching for changes
warning: repository is unrelated
** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2]
** Mercurial Distributed SCM (version 2.8.2)
** Extensions loaded: transplant
Traceback (most recent call last):
  File "/usr/bin/hg", line 38, in <module>
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 28, in
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 69, in
    ret = _runcatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 133, in
    return _dispatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 806, in
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 585, in
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 897, in
    return checkargs()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 868, in
    return cmdfunc()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 803, in
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 512, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/transplant.py", line 663, in
    tp.apply(repo, source, revmap, merges, opts)
  File "/usr/lib/python2.7/dist-packages/hgext/transplant.py", line 157, in
    repo.pull(source, heads=[node])
  File "/usr/lib/python2.7/dist-packages/mercurial/localrepo.py", line 1682, in
  File "/usr/lib/python2.7/dist-packages/mercurial/discovery.py", line 32, in
    if not remote.capable('getbundle'):
AttributeError: 'localrepository' object has no attribute 'capable'

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

More information about the Mercurial-devel mailing list