bzr-svn occasionally causes push failure

Bug #825256 reported by ablmf@hotmail.com
36
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Triaged
Medium
Unassigned

Bug Description

When I try to push local commit to svn, some times I see this crash:

Using saved push location: svn+ssh://peter.cai@calltrunk/sites/svn/cms/site/trunk
bzr: failed to report crash using apport:
     OSError(13, 'Permission denied')
bzr: ERROR: bzrlib.plugins.svn.errors.InvalidBzrSvnRevision: Revision id <email address hidden> was added incorrectly

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 924, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 1124, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 711, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/builtins.py", line 1132, in run
    use_existing_dir=use_existing_dir, no_tree=no_tree)
  File "/usr/lib/pymodules/python2.6/bzrlib/push.py", line 140, in _show_push_branch
    remember, create_prefix)
  File "/home/peter/.bazaar/plugins/svn/remote.py", line 389, in push_branch
    overwrite=overwrite)
  File "/usr/lib/pymodules/python2.6/bzrlib/branch.py", line 1098, in push
    *args, **kwargs)
  File "/home/peter/.bazaar/plugins/svn/branch.py", line 946, in push
    override_svn_revprops=_override_svn_revprops)
  File "/home/peter/.bazaar/plugins/svn/branch.py", line 886, in _update_revisions
    self._push(stop_revision, overwrite=overwrite, push_metadata=True)
  File "/home/peter/.bazaar/plugins/svn/branch.py", line 875, in _push
    layout=self.target.layout, project=self.target.project)
  File "/home/peter/.bazaar/plugins/svn/push.py", line 348, in push_branch
    append_revisions_only=append_revisions_only)
  File "/home/peter/.bazaar/plugins/svn/push.py", line 369, in push_todo
    push_metadata=push_metadata)
  File "/home/peter/.bazaar/plugins/svn/push.py", line 401, in push_revision_series
    base_revid, target_branch)
  File "/home/peter/.bazaar/plugins/svn/push.py", line 232, in _get_foreign_revision_info
    return self.target.lookup_bzr_revision_id(revid)
  File "/home/peter/.bazaar/plugins/svn/repository.py", line 1089, in lookup_bzr_revision_id
    return self.revmap.get_branch_revnum(revid, layout, project)
  File "/home/peter/.bazaar/plugins/svn/revids.py", line 290, in get_branch_revnum
    branch_path, min_revnum, max_revnum)
  File "/home/peter/.bazaar/plugins/svn/revids.py", line 174, in bisect_fileprop_revid_revnum
    raise InvalidBzrSvnRevision(revid)
InvalidBzrSvnRevision: Revision id <email address hidden> was added incorrectly

bzr 2.3.4 on python 2.6.6 (Linux-2.6.38-020638-generic-x86_64-with-
    Ubuntu-10.10-maverick)
arguments: ['/usr/bin/bzr', 'push']
plugins: bash_completion[2.3.4], bzrtools[2.3.1], dbus[0.1.0dev],
    gtk[0.100.0], launchpad[2.3.4], netrc_credential_store[2.3.4],
    news_merge[2.3.4], qbzr[0.20.1], rewrite[0.7.0dev], svn[1.1.0dev]
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.utf8'

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

visibility: public → private
John A Meinel (jameinel)
visibility: private → public
affects: bzr → bzr-svn
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

So this happens sometimes during a push but the next push works fine?

Changed in bzr-svn:
status: New → Incomplete
status: Incomplete → Confirmed
importance: Undecided → Low
Revision history for this message
ablmf@hotmail.com (ablmf) wrote :

Yeah. The second push would do the job.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Thanks for confirming. It sounds like there is a race condition at play here somewhere.

Changed in bzr-svn:
importance: Low → Medium
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.