Bug and question about branching an SVN repository
Philippe Lhoste
PhiLho at GMX.net
Fri May 6 05:35:23 UTC 2011
I am trying to work on the source code of PrestaShop:
http://www.prestashop.com/en/
I used a command line client for SVN (SilkSVN, was 1.5.4, just upgraded
to 1.6.16) to get the branch:
http://www.prestashop.com/en/downloads/#svn
Then, I issued this command:
> bzr branch official Philho
to get a work branch. I first tried in a shared repository, then I just
deleted the .bzr above to see if it is better without that, no luck.
It starts to import revisions from SVN, then it crashes:
> bzr branch official PhiLho
bzr: ERROR: exceptions.AssertionError: Unable to find old fileid for
tools/pear/PEAR.php in ('b9a71923-0436-4b27-9f14-aed3839534dd', 'trunk',
3102)
Traceback (most recent call last):
File "bzrlib\commands.pyo", line 923, in exception_to_return_code
File "bzrlib\commands.pyo", line 1123, in run_bzr
File "bzrlib\commands.pyo", line 691, in run_argv_aliases
File "bzrlib\commands.pyo", line 710, in run
File "bzrlib\cleanup.pyo", line 135, in run_simple
File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
File "bzrlib\builtins.pyo", line 1183, in run
File "bzrlib\bzrdir.pyo", line 807, in open_tree_or_branch
File "bzrlib\controldir.pyo", line 556, in _get_tree_branch
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 1119, in
open_workingtree
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 219, in
__init__
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 718, in
_update_base_revnum
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 573, in
read_working_inventory
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 530, in
add_dir_to_inv
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 507, in
find_ids
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 436, in
path_to_file_id
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 779, in
lookup_id
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 242, in
basis_idmap
File "C:/PrgCmdLine/Bazaar/plugins\svn\repository.py", line 752, in
get_fileid_map
File "C:/PrgCmdLine/Bazaar/plugins\svn\fileids.py", line 427, in get_map
File "C:/PrgCmdLine/Bazaar/plugins\svn\fileids.py", line 299, in
update_idmap
File "C:/PrgCmdLine/Bazaar/plugins\svn\fileids.py", line 243, in
apply_delta
AssertionError: Unable to find old fileid for tools/pear/PEAR.php in
('b9a71923-0436-4b27-9f14-aed3839534dd', 'trunk', 3
102)
bzr 2.3.0 on python 2.6.6 (Windows-7-6.1.7600)
arguments: ['bzr', 'branch', 'official', 'PhiLho']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
bzrtools C:\PrgCmdLine\Bazaar\plugins\bzrtools [2.3.1]
colo C:\PrgCmdLine\Bazaar\plugins\colo [0.2.1]
explorer C:\PrgCmdLine\Bazaar\plugins\explorer [1.1.2]
extcommand H:\Settings\bazaar\2.0\plugins\extcommand [unknown]
extmerge H:\Settings\bazaar\2.0\plugins\extmerge [unknown]
fastimport H:\Settings\bazaar\2.0\plugins\fastimport [unknown]
launchpad C:\PrgCmdLine\Bazaar\plugins\launchpad [2.3.0]
loom C:\PrgCmdLine\Bazaar\plugins\loom [2.2.1dev]
netrc_credential_store
C:\PrgCmdLine\Bazaar\plugins\netrc_credential_store [2.3.0]
news_merge C:\PrgCmdLine\Bazaar\plugins\news_merge [2.3.0]
pipeline C:\PrgCmdLine\Bazaar\plugins\pipeline [1.1.0]
qbzr C:\PrgCmdLine\Bazaar\plugins\qbzr [0.20.0]
rewrite C:\PrgCmdLine\Bazaar\plugins\rewrite [0.6.2dev]
svn C:\PrgCmdLine\Bazaar\plugins\svn [1.0.5dev]
upload C:\PrgCmdLine\Bazaar\plugins\upload [1.0.0]
xmloutput C:\PrgCmdLine\Bazaar\plugins\xmloutput [0.8.7.dev]
In bzr.log, I have:
Fri 2011-05-06 07:16:26 +0200
0.062 bazaar version: 2.3.0
0.062 bzr arguments: [u'branch', u'official', u'PhiLho']
0.090 looking for plugins in H:/Settings/bazaar/2.0/plugins
0.118 looking for plugins in C:/PrgCmdLine/Bazaar/plugins
0.119 Plugin name fastimport already loaded
0.201 encoding stdout as sys.stdout encoding 'cp850'
0.219 bzr-svn: using Subversion 1.6.6 (), subvertpy 0.7.5
4.713 Traceback (most recent call last):
File "bzrlib\commands.pyo", line 923, in exception_to_return_code
File "bzrlib\commands.pyo", line 1123, in run_bzr
File "bzrlib\commands.pyo", line 691, in run_argv_aliases
File "bzrlib\commands.pyo", line 710, in run
File "bzrlib\cleanup.pyo", line 135, in run_simple
File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
File "bzrlib\builtins.pyo", line 1183, in run
File "bzrlib\bzrdir.pyo", line 807, in open_tree_or_branch
File "bzrlib\controldir.pyo", line 556, in _get_tree_branch
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 1119, in
open_workingtree
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 219, in
__init__
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 718, in
_update_base_revnum
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 573, in
read_working_inventory
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 530, in
add_dir_to_inv
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 507, in
find_ids
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 436, in
path_to_file_id
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 779, in
lookup_id
File "C:/PrgCmdLine/Bazaar/plugins\svn\workingtree.py", line 242, in
basis_idmap
File "C:/PrgCmdLine/Bazaar/plugins\svn\repository.py", line 752, in
get_fileid_map
File "C:/PrgCmdLine/Bazaar/plugins\svn\fileids.py", line 427, in get_map
File "C:/PrgCmdLine/Bazaar/plugins\svn\fileids.py", line 299, in
update_idmap
File "C:/PrgCmdLine/Bazaar/plugins\svn\fileids.py", line 243, in
apply_delta
AssertionError: Unable to find old fileid for tools/pear/PEAR.php in
('b9a71923-0436-4b27-9f14-aed3839534dd', 'trunk', 3102)
4.716 couldn't find apport bug-reporting library: No module named apport
4.817 Traceback (most recent call last):
File "bzrlib\plugin.pyo", line 542, in _get__version__
File "bzrlib\__init__.pyo", line 101, in _format_version_tuple
IndexError: tuple index out of range
4.837 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
4.837 return code 4
I suppose the original repository has a SVN issue, or something unusual
not recognized by the SVN plugin, so I thought I should expose the issue
here. I can fill a bug if you think it is worth it.
Now, my question: actually, I don't need the whole history. I just want
the tip of the original branch, to be able to work on my version, and to
pull/merge new changes from the original one.
But apparently, bzr-svn kicks in when it finds a .svn directory...
Is there a way to operate on a SVN-driven directory without considering
the whole history? Beside deactivating the SVN plugin, I mean...
Thanks.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --
More information about the bazaar
mailing list