Am 28.04.2010 12:36, schrieb Thomas Moschny:
> Am Sun, 18 Apr 2010 20:49:37 +0200
> schrieb Thomas Keller <m...@thomaskeller.biz>:
> 
>> Secondly, I'd actively deprecate any branch name which does not match
>> the following regular expression, i.e. by throwing a warning when a
>> branch cert which a different value is created:
>>
>>    ^([\w\d]+([-][\w\d]+)*)(\.[\w\d]+([-][\w\d]+)*)*$
> 
> Sounds good to me, but maybe we have to ask our users, whether that'd
> be ok for them. And we should still allow them to use other branch names
> if they wish so (because technically, there's no need for such a
> restriction).

Depending on the actual URI scheme we'll be using, we can further adapt
the regular expression above, like f.e. if the URI scheme will look like
this:

        scheme://u...@host/db?include,-exclude,include

this should be sufficient I think (untested):

        ^[^-,*][^,*]+$

> "mtn ls branches | grep -v -E '^(\w+(-\w+)*)(\.\w+(-\w+)*)*$'" shows only
> one branch that doesn't match in my local copy of the monotone db
> (prjek.net:tester).

Wouldn't be a problem with the above naming.

Thomas.

-- 
GPG-Key 0x160D1092 | tommyd3...@jabber.ccc.de | http://thomaskeller.biz
Please note that according to the EU law on data retention, information
on every electronic information exchange might be retained for a period
of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to