Cannot branch on Windows due to file path length - can I do anything?

Alexander Belchenko bialix at ukr.net
Mon Mar 10 19:25:55 GMT 2008


John Arbash Meinel пишет:
> 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
> | do:
> | |
> | | 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...
> |
> | Cheers
> |
> | Nick
> 
> I did go ahead and register a blueprint for it here:
> https://blueprints.edge.launchpad.net/bzr/+spec/long-win32-paths
> 
> 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.

Last time I talked about this topic in 2006 someone (may be it was John Meinel)
said this is dead-end way.



More information about the bazaar mailing list