bzr resolve --take-other gives Invalid entry name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Vincent Ladeuil |
Bug Description
$ bzr init --quiet foo
$ mkdir foo/a
$ mkdir foo/a/b
$ echo foo > foo/a/b/c
$ bzr add -q foo/a
$ bzr ci -q -m one foo
$ bzr clone -q foo bar
$ echo bar > bar/a/b/c
$ bzr ci -q -m two bar
$ echo baz > foo/a/b/c
$ bzr ci -q -m three foo
$ bzr merge -d foo bar
2> M a/b/c
2>Text conflict in a/b/c
2>1 conflicts encountered.
$ bzr resolve --take-other foo/a/b/c
File "bzrlib/
return self.run(
File "bzrlib/
return self._operation
File "bzrlib/
self.cleanups, self.func, *args, **kwargs)
File "bzrlib/
result = func(*args, **kwargs)
File "bzrlib/
before, after = resolve(tree, file_list, action=action)
File "bzrlib/
conflict.
File "bzrlib/
meth(tree)
File "bzrlib/
self.
File "bzrlib/
op.
File "bzrlib/
self.cleanups, self.func, *args, **kwargs)
File "bzrlib/
result = func(*args, **kwargs)
File "bzrlib/
tt.apply()
File "bzrlib/
inventory_delta = self._generate_
File "bzrlib/
parent_file_id, file_id)
File "bzrlib/
return factory(file_id, name, parent_id)
File "bzrlib/
super(
File "bzrlib/
raise errors.
InvalidEntryName: Invalid entry name: a/b/c
It seems there should be no slashes there.
Related branches
- Jelmer Vernooij (community): Approve (code)
-
Diff: 122 lines (+39/-16)3 files modifiedbzrlib/conflicts.py (+6/-8)
bzrlib/tests/test_conflicts.py (+30/-8)
doc/en/release-notes/bzr-2.3.txt (+3/-0)
Changed in bzr: | |
milestone: | none → 2.3.1 |
status: | In Progress → Fix Released |
Seems this exact issue was introduced in bzr.dev commit 5558, related to bug #638451. Before that, there was no backtrace, but the resolution wouldn't work either.