"bzr push" of a branch fails with an exception

Bug #229775 reported by Bryan Forbes
6
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Incomplete
Undecided
Unassigned

Bug Description

I have my branches in a shared code repository set up like so:

bzr init-repo --rich-root-pack dojo
cd dojo
bzr branch svn+https://svn.dojotoolkit.org/src/util/trunk util

I made some changes to the branch, committed them and then pushed them:

bzr commit -m "Some changes."
bzr push svn+https://svn.dojotoolkit.org/src/util/trunk

and I get this message:

bzr: ERROR: libsvn._core.SubversionException: ("PROPFIND request failed on '/src/!svn/bc/13707/branches/branches'", 175007)

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 841, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 859, in run
    stop_revision=revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 127, in read_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1612, in push
    _override_hook_source_branch=_override_hook_source_branch)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1654, in _push_with_bound_branches
    result = self._basic_push(target, overwrite, stop_revision)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1673, in _basic_push
    target.update_revisions(self, stop_revision)
  File "/home/bryan/.bazaar/plugins/svn/branch.py", line 357, in update_revisions
    stop_revision)
  File "/home/bryan/.bazaar/plugins/svn/repository.py", line 204, in lhs_missing_revisions
    if self.has_revision(revid):
  File "/home/bryan/.bazaar/plugins/svn/repository.py", line 373, in has_revision
    (path, revnum, _) = self.lookup_revision_id(revision_id)
  File "/home/bryan/.bazaar/plugins/svn/repository.py", line 553, in lookup_revision_id
    return self.get_revmap().get_branch_revnum(revid, layout)
  File "/home/bryan/.bazaar/plugins/svn/revids.py", line 172, in get_branch_revnum
    for entry_revid, branch, revno, mapping in self.actual.discover_revids(layout, self.cache.last_revnum_checked(str(layout)), last_revnum):
  File "/home/bryan/.bazaar/plugins/svn/revids.py", line 72, in discover_revids
    for (branch, revno) in self.repos.find_fileprop_branches(layout, from_revnum, to_revnum):
  File "/home/bryan/.bazaar/plugins/svn/repository.py", line 806, in find_fileprop_branches
    for (project, branch, nick) in layout.get_branches(revnum):
  File "/home/bryan/.bazaar/plugins/svn/mapping3/__init__.py", line 83, in get_branches
    find_children):
  File "/home/bryan/.bazaar/plugins/svn/mapping3/__init__.py", line 50, in expand_branch_pattern
    ret += expand_branch_pattern(begin+[c], todo[1:], check_path, get_children)
  File "/home/bryan/.bazaar/plugins/svn/mapping3/__init__.py", line 41, in expand_branch_pattern
    return expand_branch_pattern(begin+[todo[0]], todo[1:], check_path, get_children)
  File "/home/bryan/.bazaar/plugins/svn/mapping3/__init__.py", line 42, in expand_branch_pattern
    children = get_children(path)
  File "/home/bryan/.bazaar/plugins/svn/mapping3/__init__.py", line 72, in find_children
    dirents = self.repository.transport.get_dir(path, revnum)[0]
  File "/home/bryan/.bazaar/plugins/svn/transport.py", line 656, in get_dir
    return conn.get_dir(path, revnum, pool, kind)
  File "/home/bryan/.bazaar/plugins/svn/errors.py", line 107, in convert
    raise convert_error(e)
SubversionException: ("PROPFIND request failed on '/src/!svn/bc/13707/branches/branches'", 175007)

bzr 1.5rc1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'push', 'svn+https://svn.dojotoolkit.org/src/util/trunk']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.4.0]
  fastimport /home/bryan/.bazaar/plugins/fastimport [unknown]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.93.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]
  svn /home/bryan/.bazaar/plugins/svn [0.4.10]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

I'm using:
bzr 1.5rc1 from the PPA for Ubuntu Hardy
bzr-svn 0.4.10

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 229775] [NEW] "bzr push" of a branch fails with an exception

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

please run with -Dtransport and paste the output in ~/.bzr.log

Cheers,

Jelmer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBSCtCaAy0JeEGD2blAQIBigP+NXFdhEsagC+4vDrW789y1eAEp93lT6xu
XZkAs2qvDhA6T6Xtl2+J5Xk1DD6Bao+8DcoZEDRHjZJNP8ad9/EwnCWOaE0JFNQ4
Lz4w9j5roZBS351GuoZe802+v2Xl1dNUIX6xYwOIfaiTPrSp5tRS4eVVMaM3eQJc
uSOjTjy0g/k=
=Fwvy
-----END PGP SIGNATURE-----

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

awaits more information

Changed in bzr-svn:
status: New → Incomplete
Revision history for this message
Bryan Forbes (bryanforbes) wrote :
Download full text (6.0 KiB)

Sorry for the delay. Here is the output from ~/.bzr.log:

this is a debug log for diagnosing/reporting problems in bzr
you can delete or truncate this file, or include sections in
bug reports to https://bugs.launchpad.net/bzr/+filebug

0.078 encoding stdout as sys.stdout encoding 'UTF-8'
0.078 bzr arguments: [u'-Dtransport', u'push']
0.078 looking for plugins in /home/bryan/.bazaar/plugins
0.091 bzr-svn: using Subversion 1.4.6 (/var/lib/python-support/python2.5/svn/core.pyc)
0.091 looking for plugins in /usr/lib/python2.5/site-packages/bzrlib/plugins
0.091 Plugin name __init__ already loaded
0.091 Plugin name __init__ already loaded
0.109 encoding stdout as sys.stdout encoding 'UTF-8'
0.158 opening SVN RA connection to 'https://svn.dojotoolkit.org/src/dojox/trunk'
0.172 svn get-repos-root
0.943 svn get-uuid
1.065 svn get-latest-revnum
1.337 svn check_path -r13842
2.567 request path '' -> '../..'
2.567 svn ls -r 13843 ''../..''
3.272 request path 'dojo/trunk' -> '../../dojo/trunk'
3.272 svn check_path -r13843 ../../dojo/trunk
3.547 request path 'dijit/trunk' -> '../../dijit/trunk'
3.547 svn check_path -r13843 ../../dijit/trunk
3.812 request path 'branches/trunk' -> '../../branches/trunk'
3.812 svn check_path -r13843 ../../branches/trunk
4.172 request path 'deft/trunk' -> '../../deft/trunk'
4.172 svn check_path -r13843 ../../deft/trunk
4.421 request path 'tags/trunk' -> '../../tags/trunk'
4.421 svn check_path -r13843 ../../tags/trunk
5.443 svn check_path -r13843
5.702 request path 'util/trunk' -> '../../util/trunk'
5.702 svn check_path -r13843 ../../util/trunk
5.973 request path 'trunk/trunk' -> '../../trunk/trunk'
5.973 svn check_path -r13843 ../../trunk/trunk
7.115 request path 'packages/trunk' -> '../../packages/trunk'
7.115 svn check_path -r13843 ../../packages/trunk
7.455 request path 'view/trunk' -> '../../view/trunk'
7.455 svn check_path -r13843 ../../view/trunk
8.639 request path 'dojo/trunk' -> '../../dojo/trunk'
8.639 svn ls -r 13843 ''../../dojo/trunk''
9.180 request path 'dijit/trunk' -> '../../dijit/trunk'
9.180 svn ls -r 13843 ''../../dijit/trunk''
9.702 request path 'deft/trunk' -> '../../deft/trunk'
9.702 svn ls -r 13843 ''../../deft/trunk''
10.442 svn ls -r 13843 ''''
11.189 request path 'util/trunk' -> '../../util/trunk'
11.189 svn ls -r 13843 ''../../util/trunk''
11.677 request path '' -> '../..'
11.677 svn ls -r 13843 ''../..''
12.153 request path 'dojo/branches' -> '../../dojo/branches'
12.153 svn ls -r 13843 ''../../dojo/branches''
12.625 request path 'dijit/branches' -> '../../dijit/branches'
12.625 svn ls -r 13843 ''../../dijit/branches''
13.188 request path 'branches/branches' -> '../../branches/branches'
13.188 svn ls -r 13843 ''../../branches/branches''
13.818 Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 846, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/p...

Read more...

Revision history for this message
Tro (tro) wrote :

I had a similar problem and it was solved for me when I created the missing "branches" and "tags" directories alongside the exisitng "trunk" in my Google Code repo.

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.