bzr-git and backslashes in names

Jelmer Vernooij jelmer at debian.org
Sun Aug 26 10:08:35 UTC 2012


On Sat, Aug 25, 2012 at 10:11:12PM -0400, Stefan Monnier wrote:
> > It's not a trivial problem since all backslashes provided are
> > converted to forward slashes at the inventory level, for compatibility
> > with Windows.
> 
> But when bzr-git sees a backslash in a file name in a Git repository,
> why can't it turn it into an _ before passing it to bzrlib?

It has to be able to roundtrip the data. If it turns \ into _ then it has
to turn _ back into \ when it regenerates git objects from bzr (which is
necessary to generate the fulltext for deltas it receives from git).
This would of course be possible but would instead break the use of _.

Cheers,

Jelmer



More information about the bazaar mailing list