backslash in file names
Marius Kruger
amanic at gmail.com
Thu Oct 23 07:14:50 BST 2008
2008/10/23 John Arbash Meinel <john at arbash-meinel.com>
...
> > $ cd /filesystem-that-CANNOT-handle-backslash-in-names/
> > $ bzr checkout bzr://example.com/branch-foo/
> > $ cd branch-foo/
> > $ ls
> > normalname
> >
> > $ bzr revert --revision 101
> >
> > Should the checkout fail in the second case, even though the current
> > working tree is compatible with the filesystem? If so, any poor choice
> > of filename dooms the branch forever, beyond hope of a rename
> > operation. That doesn't seem reasonable.
>
I think it should even be possible to checkout with the bad names,
it should probably change the \'s to _'s (make sure it doesn't exist, append
a number if needed).
It can even mark it as a rename automatically.
You should then be able to rename it to something else if you dont like the
name.
> >
> > Should the checkout succeed, but the revert fail if it creates a
> > working tree incompatible with the filesystem? I think that would be
> > better, but it's different from what you seem to be proposing.
> >
>
> Generally yes. It is how we handle symlinks, for example.
I agree with Ben that it makes more sense to make them filesystem specific,
a lot of people are using fat32 usb memory sticks, or work on mounted samba
shares.
my 2c
regards
marius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20081023/28d52e4e/attachment.htm
More information about the bazaar
mailing list