[PATCH] bookmarks: support -B '<regexp>' in push/pull wrappers #2

Augie Fackler durin42 at gmail.com
Thu Jul 8 19:26:14 CDT 2010


On Jul 8, 2010, at 6:05 PM, David Soria Parra wrote:

>
> On 2010-07-08, Edouard Gomez <ed.gomez at free.fr> wrote:
>> # HG changeset patch
>> # User Edouard Gomez <ed.gomez at free.fr>
>> # Date 1278627510 -7200
>> # Node ID ffdeb0f6afa86adf3141506fefa5b3ae7290dd32
>> # Parent  774c01d92fa6d31a1de36731248ddf2a8728838d
>> bookmarks: support -B '<regexp>' in push/pull wrappers
>
> I don't think this is a good idea. At the moment every character is
> allowed inside a bookmarkname, so you can create a bookmark name that
> is also a valid regexp. This will probably not work with -B.  Also I
> would like to see something like -B 'foo -> bar' in the future, to  
> map a
> bookmark foo to the local name bar. I'm not sure yet how this will  
> work
> with regexp.

maybe the syntax for regexp pushes could be -B 're:$re'? That'd mirror  
(to an extent) the syntax: line for hgignore.

>
> - D
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel



More information about the Mercurial-devel mailing list