bzr-svn push not working

Bug #312166 reported by Lionel Dricot
2
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
Bazaar Subversion Plugin
Fix Released
Medium
Jelmer Vernooij
bzr-svn (Ubuntu)
Fix Released
Undecided
Jelmer Vernooij

Bug Description

Just did a bzr branch on a SVN server, added four .txt files and modified one other. Then, I'm not able anymore to do bzr push (error below)

Note that I'm using svn+http because http alone fails (bzr-svn doesn't understand error 401 and that it needs a login/password to access this svn repository)

I've this error with bzr 1.6 from intrepid. Upgrading to ppa 1.10 doesn't solve the problem.

ploum@spoutnik:~/ploum$ bzr push svn+http://ploum.fritalk.com/svn/main/ploum/
The svn+ syntax is deprecated, use svn+http://ploum.fritalk.com/svn/main/ploum/ instead.
/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/commit.py:287: UnicodeWarning: Unicode unequal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  elif (self.old_inv.id2path(child_ie.file_id) != new_child_path or
/usr/lib/python2.5/urllib.py:1205: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  res = map(safe_map.__getitem__, s)
bzr: ERROR: exceptions.KeyError: u'\xe9'

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 913, in run
    use_existing_dir=use_existing_dir)
  File "/usr/lib/python2.5/site-packages/bzrlib/push.py", line 162, in _show_push_branch
    stop_revision=revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1799, in push
    _override_hook_source_branch=_override_hook_source_branch)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 2508, in _run_with_write_locked_target
    result = callable(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1838, in _push_with_bound_branches
    result = self._basic_push(target, overwrite, stop_revision)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1861, in _basic_push
    graph=graph)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/branch.py", line 437, in update_revisions
    _push_merged, _override_svn_revprops)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/branch.py", line 449, in _push_missing_revisions
    push(my_graph, self, other.repository, revid, override_svn_revprops=_override_svn_revprops)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/commit.py", line 831, in push
    override_svn_revprops=override_svn_revprops)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/commit.py", line 787, in push_revision_tree
    revid = builder.commit(rev.message)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/commit.py", line 539, in commit
    branch_editors[-1])
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/commit.py", line 375, in _dir_process
    self._dir_process(new_child_path, child_ie.file_id, child_editor)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/commit.py", line 375, in _dir_process
    self._dir_process(new_child_path, child_ie.file_id, child_editor)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/commit.py", line 294, in _dir_process
    _url_escape_uri(urlutils.join(self.repository.transport.svn_url, self.base_path, self.old_inv.id2path(child_ie.file_id))),
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/transport.py", line 76, in _url_escape_uri
    path = urllib.quote(path)
  File "/usr/lib/python2.5/urllib.py", line 1205, in quote
    res = map(safe_map.__getitem__, s)
KeyError: u'\xe9'

bzr 1.10 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'push', 'svn+http://ploum.fritalk.com/svn/main/ploum/']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'fr_BE.UTF-8'
plugins:
  avahi /usr/lib/python2.5/site-packages/bzrlib/plugins/avahi [0.3dev]
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.10]
  dbus /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [unknown]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.95.0.final.1]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3]
  svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.16]
*** 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.

Revision history for this message
Cuong Le (cuonglb) wrote :

I noticed this only happened to the python version 2.5.2 !
It does not have the right ?

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

Does it occur with bzr-svn 0.5 ? (Please don't use 0.5 for rpdocution stuff just yet, but it would be nice to see if this bug is fixed there).

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

Is there any .deb package of bzr-svn 0.5 so I can test ?

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 312166] Re: bzr-svn push not working

Am Montag, den 05.01.2009, 23:24 +0000 schrieb Lionel Dricot:
> Is there any .deb package of bzr-svn 0.5 so I can test ?
Debian experimental has a package of the 0.5.0 rc.

Cheers,

Jelmer
--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

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

Reproduced and fixed in the 0.5 branch.

Changed in bzr:
status: New → Invalid
Changed in bzr-svn:
assignee: nobody → jelmer
importance: Undecided → Medium
milestone: none → 0.5.0
status: New → Fix Released
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
assignee: nobody → jelmer
status: New → Fix Released
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.