bzr-svn co crashes on Windows: exceptions.KeyError

Bug #291361 reported by George V. Reilly
2
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Undecided
Jelmer Vernooij

Bug Description

The bzr-svn binaries for Windows are old and require Subversion 1.4 client binaries and Bazaar 1.5.

(Some names elided below.)

d:\bzr-svn>svn14.bat co http://.../trunk svn-trunk

d:\bzr-svn>cd svn-trunk

d:\bzr-svn\svn-trunk>bzr co . ..\bzr-work
Initialising Subversion metadata cache in C:/Users/georger/AppData/Roaming/bazaar/2.0\svn-cache\1248e456-dc32-5a46-b6cc-76877e1dc968
bzr: ERROR: exceptions.KeyError: 'foo/bar/PhotoData.cs'

Traceback (most recent call last):
  File "bzrlib\commands.pyc", line 846, in run_bzr_catch_errors
  File "bzrlib\commands.pyc", line 797, in run_bzr
  File "bzrlib\commands.pyc", line 499, in run_argv_aliases
  File "bzrlib\builtins.pyc", line 1004, in run
  File "bzrlib\bzrdir.pyc", line 790, in open_tree_or_branch
  File "bzrlib\bzrdir.pyc", line 772, in _get_tree_branch
  File "C:/Users/georger/AppData/Roaming/bazaar/2.0/plugins\svn\workingtree.py", line 741, in open_workingtree
  File "C:/Users/georger/AppData/Roaming/bazaar/2.0/plugins\svn\workingtree.py", line 88, in __init__
  File "C:/Users/georger/AppData/Roaming/bazaar/2.0/plugins\svn\tree.py", line 275, in __init__
  File "C:/Users/georger/AppData/Roaming/bazaar/2.0/plugins\svn\repository.py", line 286, in get_fileid_map
  File "C:/Users/georger/AppData/Roaming/bazaar/2.0/plugins\svn\fileids.py", line 269, in get_map
  File "C:/Users/georger/AppData/Roaming/bazaar/2.0/plugins\svn\fileids.py", line 174, in update_map
KeyError: 'foo/bar/PhotoData.cs'

bzr 1.5 on python 2.5.2 (win32)
arguments: ['bzr', 'co', '.', '..\\bzr-work']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  launchpad C:\Program Files\Bazaar\plugins\launchpad [unknown]
  svn C:\Users\georger\AppData\Roaming\bazaar\2.0\plugins\svn [0.4.10]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This bug is probably fixed in newer versions of bzr-svn. Any chance you can try to reproduce it with 0.4.13 ?

Changed in bzr-svn:
status: New → Incomplete
Revision history for this message
George V. Reilly (georgevreilly) wrote : Re: [Bug 291361] Re: bzr-svn co crashes on Windows: exceptions.KeyError

If there's an up-to-date Windows binary for bzr-svn, I'll certainly try it,
but I'm using the most recent one that I could find.

2008/10/30 Jelmer Vernooij <email address hidden>

> This bug is probably fixed in newer versions of bzr-svn. Any chance you
> can try to reproduce it with 0.4.13 ?
>
> ** Changed in: bzr-svn
> Status: New => Incomplete
>
> --
> bzr-svn co crashes on Windows: exceptions.KeyError
> https://bugs.launchpad.net/bugs/291361
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
/George V. Reilly <email address hidden>
http://www.georgevreilly.com/blog http://blogs.cozi.com/tech

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

There should be a binary available for 1.9rc1.

Revision history for this message
George V. Reilly (georgevreilly) wrote :

I installed 1.9rc1-3 this morning. I ran
 d:\bzr-svn>bzr co http://svn/repos/cozi/trunk svn-ro
It ground away for several hours, processing about 13,000 of the 17,000+ revisions in the SVN repository. If it later fetched more revisions, I didn't see it.

Eventually, it died with
 bzr: ERROR: Unable to create symlink 'Cozi/Apps/CorporateWebsite2.0/Source/nam/resources' on this platform
This is Windows, so there are no symlinks, of course.

There is ~1GB of stuff in svn-ro/.bzr, but no files in the working directory.

BTW, I think my earlier bug report was caused in part by my confusion on how to use bzr-svn. The documentation badly needs a simple example of how to use Subversion integration.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Thanks for confirming the original bug is now fixed.

You can't check out repositories that contain symbolic links on Windows although there are a few workarounds. See http://bazaar-vcs.org/WindowsSymlinkSupport for more information.

What exactly is missing from the documentation? What specifically confused you?

Changed in bzr-svn:
status: Incomplete → Fix Released
Revision history for this message
George V. Reilly (georgevreilly) wrote :

So bzr-svn simply doesn't support Windows symlinks for now?

As far as I can now tell, 'bzr co <url-to-svn-repository>' is how you're supposed to checkout a Subversion repository under Bazaar. That's not obvious and it wasn't my initial assumption -- see commands at the top of the thread.

I would suggest a brief tutorial that shows the minimum operations needed to work with an svn repo in bzr.
* Checkout the svn repo: bzr-svn's equivalent of 'svn co URL'
* Update from svn: ~= 'svn up'
* Make 2-3 changes in local bzr repo: some mixture of 'bzr add', 'bzr ci', 'bzr diff', etc
* Commit to svn: 'svn ci'

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

bzr-svn does support symlinks. However, bzr does not support symlinks on Windows by default (you can't check out a bzr branch with symlinks on Windows either).

the quick tutorial you mention is present in the bzr user guide.

Revision history for this message
George V. Reilly (georgevreilly) wrote :
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
assignee: nobody → Jelmer Vernooij (jelmer)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.