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

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Fri Jul 8 15:40:05 UTC 2016


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

            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>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 28, in
run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 69, in
dispatch
    ret = _runcatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 133, in
_runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 806, in
_dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 585, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 897, in
_runcommand
    return checkargs()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 868, in
checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 803, in
<lambda>
    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
transplant
    tp.apply(repo, source, revmap, merges, opts)
  File "/usr/lib/python2.7/dist-packages/hgext/transplant.py", line 157, in
apply
    repo.pull(source, heads=[node])
  File "/usr/lib/python2.7/dist-packages/mercurial/localrepo.py", line 1682, in
pull
    force=force)
  File "/usr/lib/python2.7/dist-packages/mercurial/discovery.py", line 32, in
findcommonincoming
    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