bzr-git and backslashes in names

Jelmer Vernooij jelmer at samba.org
Sat Aug 25 09:51:56 UTC 2012


Hi Stefan,

On Sat, Aug 25, 2012 at 12:05:52AM -0400, Stefan Monnier wrote:
> I can live with Bazaar disallowing backslashes in its file names (tho
> I find it silly), but I find it really annoying that bzr-git and bzr-svn
> refuse to work on repositories that have had files whose name included
> backslashes.
> Is there any hope to see this long-standing problem solved any
> time soon?
> It shouldn't be that hard to either accept backslashes in Bzr, or make
> bzr-git/svn replace all backslashes with something else, right?
It's not a trivial problem since all backslashes provided are
converted to forward slashes at the inventory level, for compatibility
with Windows.

It should be possible to have the UI handle the forward and backward
slashes and have the lower APIs consistently use forward slashes as
path element seperators (so that backslashes can be used as regular
characters). This does however require making sure that
the UI takes care of converting \ to / everywhere on Windows.

Cheers,

Jelmer



More information about the bazaar mailing list