hg push fails with "AssertionError: Replacement node came back as: []"

Create issue
Issue #126 resolved
Akira Kitada created an issue

$ ./crash {{{ + '[' -d /tmp/tmp ']' + cd /tmp/tmp + svnadmin create svn1 + svnadmin create svn2 + svn co file:///tmp/tmp/svn1 svnwork1 Checked out revision 0. + svn co file:///tmp/tmp/svn2 svnwork2 Checked out revision 0. + cd svnwork1 + svn mkdir patches A patches + echo dir to patch + svn add patches/README A patches/README + svn ci -m 'add patches/' Adding patches Adding patches/README Transmitting file data . Committed revision 1. + cd - /tmp/tmp + cd svnwork2 + echo a + echo b + echo c + svn add a b c A a A b A c + svn ci -m 'add a, b and c.' Adding a Adding b Adding c Transmitting file data ... Committed revision 1. + cd - /tmp/tmp + hg clone file:///tmp/tmp/svn1/patches patches [r1] testuser: add patches/ pulled 1 revisions updating working directory 1 files updated, 0 files merged, 0 files removed, 0 files unresolved + hg clone file:///tmp/tmp/svn2 hgsvnwork [r1] testuser: add a, b and c. pulled 1 revisions updating working directory 3 files updated, 0 files merged, 0 files removed, 0 files unresolved + cd hgsvnwork + hg qinit + rmdir .hg/patches + ln -s /tmp/tmp/patches .hg/patches + hg qnew 1.diff + echo 1.diff edit + hg qref + hg qnew 2.diff + echo 2.diff edit + hg qref + hg qnew 3.diff + echo 3.diff edit + hg qref + hg qnew 4.diff + echo 4.diff add + hg qref + cd - /tmp/tmp + cd patches + hg add 1.diff 2.diff 3.diff 4.diff series 1.diff already tracked! 2.diff already tracked! 3.diff already tracked! 4.diff already tracked! + hg ci -m 'adding patches' + hg push pushing to file:///tmp/tmp/svn1/patches searching for changes no changes found unknown exception encountered, details follow report bug details to http://mercurial.selenic.com/bts/ or mercurial@selenic.com Mercurial Distributed SCM (version 1.3.1) Extensions loaded: mq, bookmarks, convert, rebase, svn, record Traceback (most recent call last): File "/opt/local/bin/hg", line 27, in <module> mercurial.dispatch.run() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 16, in run sys.exit(dispatch(sys.argv[1:])) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 27, in dispatch return _runcatch(u, args) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 43, in _runcatch return _dispatch(ui, args) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 449, in _dispatch return runcommand(lui, repo, cmd, fullargs, ui, options, d) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 317, in runcommand ret = _runcommand(ui, options, cmd, d) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 501, in _runcommand return checkargs() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 454, in checkargs return cmdfunc() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/dispatch.py", line 448, in <lambda> d = lambda: util.checksignature(func)(ui, *args, cmdoptions) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/util.py", line 402, in check return func(args, kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/extensions.py", line 103, in wrap util.checksignature(origfn), *args, kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/util.py", line 402, in check return func(args, kwargs) File "/Users/testuser/src/hgsubversion/hgsubversion/wrappers.py", line 410, in generic return orig(ui, repo, *args, opts) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/util.py", line 402, in check return func(*args, kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/commands.py", line 2333, in push r = repo.push(other, opts.get('force'), revs=revs) File "/Users/testuser/src/hgsubversion/hgsubversion/svnrepo.py", line 43, in wrapper return fn(self, *args, opts) File "/Users/testuser/src/hgsubversion/hgsubversion/svnrepo.py", line 53, in push return wrappers.push(self, remote, force, revs) File "/Users/testuser/src/hgsubversion/hgsubversion/wrappers.py", line 167, in push assert len(replacement) == 1, 'Replacement node came back as: %r' % replacement AssertionError: Replacement node came back as: []

}}}

Comments (2)

  1. Augie Fackler repo owner

    Can you try again with today's tip and see if this is resolved? I saw behavior like this in my automated test before the fix was applied.

  2. Log in to comment