[darcs-users] How do you specify negative regex patterns?

Nimrod A. Abing nimrod.abing at gmail.com
Sat Nov 26 12:35:37 UTC 2005


On 11/26/05, Tommy Pettersson <ptp at lysator.liu.se> wrote:
> On Sat, Nov 26, 2005 at 03:15:09PM +0800, Nimrod A. Abing wrote:
> > I would like to be able to specify a pattern that would allow me to
> > push patches not matching the pattern '^[0-9]+-local:'. Is there a way
> > to specify a negative pattern or just simply negate a pattern match
> > result? This would be similar to the perl operator !~.
>
> darcs push --matches 'name bugfix && not name ^[0-9]+-local'
>
> The quoting rules in match expressions are a little simplified.
> I don't remember the exact rule now, but usually it's enough
> to use "s, like: 'name "foo bar"' if there are spaces in
> an argument.
>
> The --patches option doesn't seem to combine with the
> --matches option.

Thanks for the heads-up on --matches. I've been using darcs for months
and months now and I haven't noticed that flag up until now. :)
--
_nimrod_a_abing_

"I reject your reality and substitute my own." -- Adam Savage




More information about the darcs-users mailing list