monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Renaming branches -- where is the script?


From: Brian Downing
Subject: Re: [Monotone-devel] Renaming branches -- where is the script?
Date: Sat, 25 Jun 2005 13:01:44 -0500
User-agent: Mutt/1.2.5i

On Fri, Jun 24, 2005 at 01:15:10PM -0700, Nathaniel Smith wrote:
> If someone were to fix the b: selector (as described at
> http://venge.net/monotone/quickies.html, last item), then this would
> just be
>   $ for R in `monotone automate select b:badbranch`
>   > do monotone cert $R branch goodbranch; done
> ATM though this will not do what you want if there are any branches
> named badbranchfoo, since b:badbranch will match any branch whose name
> begins with  "badbranch".

Attached is a quick fix for this.  The 'b:' selector is an explicit glob
now - "b:net.venge.monotone" gets only the net.venge.monotone branch,
"b:*net.venge.monotone*" gets the ol behavior.

Behavior for the other selectors shouldn't have changed.  However, their
behavior was not as documented.  Most are doing a '*%s*' glob search
("b:ge.monotone.gu" would find the net.venge.monotone.gui branch), even
though the documentation implied that it was a '%s*' search.

-bcd
--
*** Brian Downing <bdowning at lavos dot net>

Attachment: b-selector.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]