Push fails after first change if multiple changes happened

Create issue
Issue #28 resolved
Augie Fackler repo owner created an issue

If the pushed changeset gets rebased "for free" during commit, an assertion will fail because of the extra new revisions.

Comments (5)

  1. Former user Account Deleted

    I think, I experience the same error. When I svn push more than one changeset, I get

    unknown exception encountered, details follow report bug details to http://www.selenic.com/mercurial/bts or mercurial@selenic.com Mercurial Distributed SCM (version 5751631246de) Extensions loaded: children, churn, convert, fetch, gpg, graphlog, imerge, inotify, mq, patchbomb, purge, record, transplant, hgsubversion, rebase Traceback (most recent call last): File "/home/florenz/hg-latest/hg", line 20, in <module> mercurial.dispatch.run() File "mercurial/dispatch.py", line 20, in run File "mercurial/dispatch.py", line 29, in dispatch File "mercurial/dispatch.py", line 45, in _runcatch File "mercurial/dispatch.py", line 367, in _dispatch File "mercurial/dispatch.py", line 416, in _runcommand File "mercurial/dispatch.py", line 376, in checkargs File "mercurial/dispatch.py", line 361, in <lambda> File "mercurial/util.py", line 681, in check File "/home/florenz/hgsubversion/init.py", line 10, in svn return svncommand.svncmd(ui, repo, subcommand, *args, opts) File "/home/florenz/hgsubversion/svncommand.py", line 41, in svncmd opts) File "/home/florenz/hgsubversion/push_cmd.py", line 55, in push_revisions_to_subversion assert len(replacement) == 1 AssertionError

    hg svn outgoing shows

    changeset: 5:a54551a601e3 user: florenz@gilgalad.uebb.cs.tu-berlin.de date: Thu Nov 20 14:26:23 2008 +0100 summary: fhhf

    changeset: 6:65ca7e48f26d tag: tip user: florenz@gilgalad.uebb.cs.tu-berlin.de date: Thu Nov 20 14:26:35 2008 +0100 summary: hfhf

    in that case.

    I use hg-latest (5751631246de) and hgsubversion 10dd34deac3b on Ubuntu 8.10.

    A fix would be great since hgsubversion is exactly what I was looking for.

    Regards,

    Florian

  2. Former user Account Deleted

    I'm sorry, I screwed up the formatting in the first place.

    I think, I experience the same error. When I svn push more than one changeset, I get

    ** unknown exception encountered, details follow
    ** report bug details to http://www.selenic.com/mercurial/bts
    ** or mercurial@selenic.com
    ** Mercurial Distributed SCM (version 5751631246de)
    ** Extensions loaded: children, churn, convert, fetch, gpg, graphlog, imerge, inotify, mq, patchbomb, purge, record, transplant, hgsubversion, rebase
    Traceback (most recent call last):
      File "/home/florenz/hg-latest/hg", line 20, in <module>
        mercurial.dispatch.run()
      File "mercurial/dispatch.py", line 20, in run
      File "mercurial/dispatch.py", line 29, in dispatch
      File "mercurial/dispatch.py", line 45, in _runcatch
      File "mercurial/dispatch.py", line 367, in _dispatch
      File "mercurial/dispatch.py", line 416, in _runcommand
      File "mercurial/dispatch.py", line 376, in checkargs
      File "mercurial/dispatch.py", line 361, in <lambda>
      File "mercurial/util.py", line 681, in check
      File "/home/florenz/hgsubversion/__init__.py", line 10, in svn
        return svncommand.svncmd(ui, repo, subcommand, *args, **opts)
      File "/home/florenz/hgsubversion/svncommand.py", line 41, in svncmd
        **opts)
      File "/home/florenz/hgsubversion/push_cmd.py", line 55, in push_revisions_to_subversion
        assert len(replacement) == 1
    AssertionError
    

    hg svn outgoing shows

    changeset:   5:a54551a601e3
    user:        florenz@gilgalad.uebb.cs.tu-berlin.de
    date:        Thu Nov 20 14:26:23 2008 +0100
    summary:     fhhf
    
    changeset:   6:65ca7e48f26d
    tag:         tip
    user:        florenz@gilgalad.uebb.cs.tu-berlin.de
    date:        Thu Nov 20 14:26:35 2008 +0100
    summary:     hfhf
    

    in that case.

    I use hg-latest (5751631246de) and hgsubversion 10dd34deac3b on Ubuntu 8.10.

    A fix would be great since hgsubversion is exactly what I was looking for.

    Regards,

    Florian

  3. Augie Fackler reporter

    I have a fix for this locally as best I can tell. Will be pushed next time I have internet access for anything other than my phone.

  4. Log in to comment