post 0.8 development

John A Meinel john at arbash-meinel.com
Wed May 10 16:27:33 BST 2006


Robert Widhopf-Fenk wrote:
> On Monday, May 8, 2006 at 14:46:59, John A Meinel wrote:
> [...]
>>> with a bit of shell magic as:
>>>   bzr diff http://path/to/branch;revno={1,2}
>> Except the shell would interpret that as:
>> bzr diff http://path/to/branch
>> revno=1 revno=2
>>
>> Which would do something *very* different. (One of the reasons we
>> were discussing using something other than ';' as the parameter
>> specifier.  ',' is the alternative, but it might be too common in a
>> filename)
> 
> "," is so easy to type on any keyboard and not a wildchar in
> any shell I know and it is illegal in DOS/Windows. 

It most certainly is not an illegal Windows character. It may be an
illegal dos 8.3 character.

> 
> It does not matter if it is common in file names, it only
> must not exist in a branch name and IMHO this restrictions
> would not harm anyone?
> 
> With the same syntax as for -r, e.g.
> 
>  bzr diff http://path/to/branch,1..2
>  bzr diff .,1 http://path/to/branch,2
>  bzr diff http://path/to/branch,2
>  ...
>  
> Are there any branches around with a "," in the branch
> (directory) name?  I did not find any public ones.
> 
> SVN uses "@", so using it would not cause headache to
> assimilated svn users.
> 
> Robert

At one point we started using /@, meaning path/to/branch/@1
I don't remember the official reasons, but we decided to get rid of that
syntax.
I'm fine with the comma. I think we should support escaping it, (as in
http://path/with\,comma/,1..2) But I'm not settled on that.
I dislike arbitrary "you can't do that" restrictions.

As an old arch hangover, I still create temporary directories with a
leading comma (helps me realize I can just delete them at anytime in the
future).
So I do have paths with commas in them. Albeit rarely, and nothing truly
important in them.

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060510/cee2138f/attachment.pgp 


More information about the bazaar mailing list