Help with bzr-svn
Brian de Alwis
bsd at cs.ubc.ca
Tue Mar 24 20:54:37 GMT 2009
On 24-Mar-2009, at 1:03 PM, Jelmer Vernooij wrote:
>> Please forgive a momentary whinge, but this behaviour has been
>> annoying me too. It's registered as bug 58180
>> (https://bugs.launchpad.net/bzr/+bug/58180).
> This is a different issue though; his repository doesn't have any
> special characters, this appears to mainly be a bug in bzr-svn on
> Windows, not converting all \ (the standard path separator on Windows)
> to / (standard path separator in POSIX, URLs and Bazaar).
Forgive me if I jumped the gun -- the stack trace looked very similar
to what I remembered encountering during my conversion (and it does
look similar; see below). From a brief inspection, I guessed that bzr-
svn was trying to spoof up a bzr inventory from an equivalent
subversion revision, and erroring out because of the invalid character.
You may be correct about bzr-svn not properly converting the \ to / in
Talden's repository. But I get a very similar error pulling from the
NetBSD SVN-converted repository using bzr 1.12 and bzr-svn 0.5.2, and
in this particular case the filename is supposed to have a '\'. Stack
trace follows; the main difference is instead of add_directory towards
the end, mine is add_file:
Mon 2009-03-16 10:29:34 -0600
0.048 bzr arguments: [u'svn-import', u'svn://localhost:6789', u'nb-
bzr-svn']
0.067 looking for plugins in /staff/bsd178/.bazaar/plugins
0.111 looking for plugins in /staff/bsd178/installs/bzr-1.12//lib/
python2.5/site-packages/bzrlib/plugins
0.258 looking for plugins in /staff/bsd178/installs/bzr-1.12/lib64/
python2.5/site-packages/bzrlib/plugins
0.269 looking for plugins in /usr/lib/python2.5/site-packages/bzrlib/
plugins
0.320 encoding stdout as osutils.get_user_encoding() 'UTF-8'
0.583 opening SVN RA connection to 'svn://localhost:6789'
0.606 bzr-svn: using Subversion 1.4.6 ()
48.265 potential branching layouts: [('trunk0', 2000), ('root', 1)]
48.266 Guessed repository layout: TrunkLayout(0), guess layout to
use: TrunkLayout(0)
[11841] 2009-03-16 10:30:23.222 INFO: Using repository layout: trunk0
5871.424 opening SVN RA connection to 'svn://localhost:6789'
6525.757 Resizing the inventory entry cache from 10240 to 13726
6590.912 Traceback (most recent call last):
File "/staff/bsd178/installs/bzr-1.12/lib64/python2.5/site-packages/
bzrlib/commands.py", line 896, in run_bzr_catch_errors
return run_bzr(argv)
File "/staff/bsd178/installs/bzr-1.12/lib64/python2.5/site-packages/
bzrlib/commands.py", line 842, in run_bzr
ret = run(*run_argv)
File "/staff/bsd178/installs/bzr-1.12/lib64/python2.5/site-packages/
bzrlib/commands.py", line 542, in run_argv_aliases
return self.run(**all_cmd_args)
File "/staff/bsd178/installs/bzr-1.12/lib64/python2.5/site-packages/
bzrlib/commands.py", line 856, in ignore_pipe
result = func(*args, **kwargs)
File "/staff/bsd178/installs/bzr-1.12//lib/python2.5/site-packages/
bzrlib/plugins/svn/commands.py", line 157, in run
to_revnum=to_revnum, prefix=prefix)
File "/staff/bsd178/installs/bzr-1.12//lib/python2.5/site-packages/
bzrlib/plugins/svn/convert.py", line 263, in convert_repository
inter.fetch(needed=revmetas)
File "/staff/bsd178/installs/bzr-1.12//lib/python2.5/site-packages/
bzrlib/plugins/svn/fetch.py", line 1089, in fetch
self._fetch_revisions(needed, pb, use_replay=use_replay)
File "/staff/bsd178/installs/bzr-1.12//lib/python2.5/site-packages/
bzrlib/plugins/svn/fetch.py", line 1026, in _fetch_revisions
parent_revmeta)
File "/staff/bsd178/installs/bzr-1.12//lib/python2.5/site-packages/
bzrlib/plugins/svn/fetch.py", line 982, in _fetch_revision_switch
report_inventory_contents(reporter, parent_revnum, start_empty)
File "/staff/bsd178/installs/bzr-1.12//lib/python2.5/site-packages/
bzrlib/plugins/svn/errors.py", line 127, in convert
return unbound(*args, **kwargs)
File "/staff/bsd178/installs/bzr-1.12//lib/python2.5/site-packages/
bzrlib/plugins/svn/fetch.py", line 811, in report_inventory_contents
reporter.finish()
File "/staff/bsd178/installs/bzr-1.12//lib/python2.5/site-packages/
bzrlib/plugins/svn/fetch.py", line 283, in add_file
check_filename(path)
File "/staff/bsd178/installs/bzr-1.12//lib/python2.5/site-packages/
bzrlib/plugins/svn/fetch.py", line 111, in check_filename
raise InvalidFileName(path)
InvalidFileName: Unable to convert Subversion path bin/ed/test/\n.d
because it contains characters invalid in Bazaar.
6590.913 return code 3
--
"Amusement to an observing mind is study." - Benjamin Disraeli
More information about the bazaar
mailing list