Comment 8 for bug 139478

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 139478] Re: UnlockableTransport running update in checkout of readonly branch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tommi Vainikainen wrote:
> Since I upgraded to bzr 1.17 I also got this when running "bzr up" to
> checkout from bzr+ssh://bazaar.launchpad.net/%7Ebzr/bzr-git/trunk/
>
> bzr: ERROR: Cannot lock LockDir(lp-44636176:///~bzr/bzr-
> git/trunk/.bzr/branchlock): Transport operation not possible: readonly
> transport
>

^- This is happening because the code changed to switch escaping rules.
So we have a saved location of:

.../%7E...

but you are now updating from:
.../~...

And the internal code uses:
  if url == saved_url:
    # updating from checkout master, just take a read lock
    tree.lock_read()
  else:
    tree.lock_write()

They no longer compare equal, so now you get a failure as you can't
write lock the master branch.

I don't know for sure the workaround, but something like:

bzr unbind; bzr bind; bzr up
or worst case

bzr unbind; bzr bind lp:bzr-git; bzr up

Should get it to work.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpocjsACgkQJdeBCYSNAAMt8QCeJW5Z21OOGDxvoxoyhjOCoC/6
eXQAoKUP0sM9Rm+zOVH0A8cUXt+8eNKo
=594x
-----END PGP SIGNATURE-----