svn and bzr-svn clash on commit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Subversion Plugin |
Fix Released
|
Medium
|
Jelmer Vernooij |
Bug Description
It's possible to cause a clash between SVN and bzr on commit. Tested with 0.4 r719
The command log below creates a simple testcase:
mkdir -p /tmp/bzr-
cd /tmp/bzr-
svnadmin create test
svn co file://
cd svnco/
echo foo > foo.txt
svn add foo.txt
svn ci -m "add file"
cd ..
bzr get test/ bzrco
cd bzrco/
echo bar > bar.txt
bzr add bar.txt
bzr ci -m "add another file"
bzr push /tmp/bzr-
cd ../svnco/
echo baz > baz.txt
svn add baz.txt
svn ci -m "add yet another file" # Things go wrong here, it commits r3 again
svn up
cd ../bzrco/
echo qux > qux.txt
bzr add qux.txt
bzr ci -m "add still more files"
bzr merge
bzr commit -m "merge"
bzr push
Changed in bzr-svn: | |
milestone: | none → 0.4.4 |
status: | Triaged → Fix Committed |
Changed in bzr-svn: | |
status: | Fix Committed → Fix Released |
Forgot to paste the backtrace I get after the last command:
bzr: ERROR: libsvn. _core.Subversio nException: ("File already exists: filesystem '/tmp/bzr- svn-conflict/ test/db' , transaction '4-1', path '/baz.txt'", 160020)
Traceback (most recent call last): python2. 5/site- packages/ bzrlib/ commands. py", line 817, in run_bzr_ catch_errors python2. 5/site- packages/ bzrlib/ commands. py", line 779, in run_bzr python2. 5/site- packages/ bzrlib/ commands. py", line 477, in run_argv_aliases **all_cmd_ args) python2. 5/site- packages/ bzrlib/ builtins. py", line 804, in run python2. 5/site- packages/ bzrlib/ decorators. py", line 127, in read_locked python2. 5/site- packages/ bzrlib/ branch. py", line 1556, in push hook_source_ branch= _override_ hook_source_ branch) python2. 5/site- packages/ bzrlib/ branch. py", line 1598, in _push_with_ bound_branches push(target, overwrite, stop_revision) python2. 5/site- packages/ bzrlib/ branch. py", line 1617, in _basic_push update_ revisions( self, stop_revision) mathrick/ .bazaar/ plugins/ svn/branch. py", line 356, in update_revisions mathrick/ .bazaar/ plugins/ svn/commit. py", line 674, in push commit( rev.message) mathrick/ .bazaar/ plugins/ svn/commit. py", line 455, in commit batons[ -1]) mathrick/ .bazaar/ plugins/ svn/commit. py", line 256, in _dir_process child_path) , baton, None, -1, self.pool) mathrick/ .bazaar/ plugins/ svn/errors. py", line 77, in convert tion: ("File already exists: filesystem '/tmp/bzr- svn-conflict/ test/db' , transaction '4-1', path '/baz.txt'", 160020)
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
push_result = br_from.push(br_to, overwrite)
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
_override_
File "/usr/lib/
result = self._basic_
File "/usr/lib/
target.
File "/home/
push(self, other, revid)
File "/home/
builder.
File "/home/
branch_
File "/home/
new_
File "/home/
raise convert_error(e)
SubversionExcep
bzr 0.90.0 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'push']
** please send this report to <email address hidden>