can't switch lightweight checkout if base branch was renamed
Alexander Belchenko
bialix at ukr.net
Wed Oct 1 05:45:58 BST 2008
Wouter van Heyst пишет:
> On Mon, Sep 29, 2008 at 11:52:41PM +0300, Alexander Belchenko wrote:
>> Aaron Bentley пишет:
>>> Alexander Belchenko wrote:
>>>> If I rename/move base branch of lightweight checkout then I can't switch checkout to update base
>>>> branch location:
>>>> C:\work\Bazaar\plugins\qbzr>bzr switch C:/work/Bazaar/qbzr-repo/trunk
>>>> bzr: ERROR: Not a branch: "C:/work/Bazaar/qbzr-repo.packs/trunk/".
>>> I believe it works if you supply --force.
>> Thanks, it works. I've tried `bzr switch -f` before, but there is no `-f` option.
>
> What happens to uncommitted changes when you supply --force, and might
> that be the reason why it doesn't allow it without?
>
> And how close is the problem to https://bugs.edge.launchpad.net/bzr/+bug/276404
> where pull fails on a similar moved base in get_parent()
No, this is different problem:
C:\work\Bazaar\plugins\qbzr>bzr -Derror switch trunk
bzr: ERROR: bzrlib.errors.NotBranchError: Not a branch: "C:/work/Bazaar/qbzr-repo/trunk/foo/".
Traceback (most recent call last):
File "bzrlib\commands.pyc", line 932, in run_bzr_catch_errors
File "bzrlib\commands.pyc", line 883, in run_bzr
File "bzrlib\commands.pyc", line 585, in run_argv_aliases
File "bzrlib\builtins.pyc", line 4500, in run
File "bzrlib\bzrdir.pyc", line 1371, in open_branch
File "bzrlib\branch.pyc", line 1292, in open
File "bzrlib\bzrdir.pyc", line 667, in open
File "bzrlib\bzrdir.pyc", line 704, in open_from_transport
File "bzrlib\transport\__init__.pyc", line 1616, in do_catching_redirections
File "bzrlib\bzrdir.pyc", line 681, in find_format
File "bzrlib\bzrdir.pyc", line 1444, in find_format
NotBranchError: Not a branch: "C:/work/Bazaar/qbzr-repo/trunk/foo/".
switch tries to actually open branch. why? I don't know. AFAIK working tree knows what revision it is.
More information about the bazaar
mailing list