Cannot branch on Windows due to file path length - can I do anything?
John Arbash Meinel
john at arbash-meinel.com
Mon Mar 10 19:09:58 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Nicholas Allen wrote:
| | Also, I was playing around with it just now, and it seems python itself
| | probably
| | doesn't support everything about the longer paths. Specifically, I can
| | os.mkdir(u'\\\\?\\' + really_long_path + '\\JustABitMore')
| | And os.listdir() also seems to work.
| | If you want to play around with this, it is possible that a couple small
| | tweaks
| | would get it to work. We could probably update
| | bzrlib.workingtree.WorkingTree.abspath to return u'\\\\?\\' + path
| | and then you would also need to update something like
| | urlutils.local_path_from_url and probably local_path_to_url.
| | (Specifically, the _win32* variants.)
| | My quick hack caused problems because we started translating the "\\?\"
| | to "//?/".
| | So it might be possible (we generally work in absolute paths anyway)
| but it
| | would take someone with some time to really track down all of those
| | places and
| | make sure everything still works.
| Thanks for the informative reply - I realize this is not Bazaar's fault.
| It would be nice if it could support this and I would be interested in
| helping but I'm always busy (as usual ;-( ) and doubt I would get much
| chance to look at this...
I did go ahead and register a blueprint for it here:
But I don't know if anyone will pick it up for a while. I figured I can at least
jot down some of the ideas about it, so that people can think about it.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the bazaar