[darcs-users] How to diff a rolled-back patch
Andrew Pimlott
andrew at pimlott.net
Mon Sep 6 14:17:39 UTC 2004
On Mon, Sep 06, 2004 at 03:56:17AM -0400, David Roundy wrote:
> On Mon, Sep 06, 2004 at 01:48:25AM +0200, Juliusz Chroboczek wrote:
> > $ darcs changes
> > Fri Sep 3 01:31:35 CEST 2004 Juliusz Chroboczek <jch at pps.jussieu.fr>
> > UNDO: Fix a race between superseding and noticeRequest.
> >
> > Fri Sep 3 01:31:35 CEST 2004 Juliusz Chroboczek <jch at pps.jussieu.fr>
> > * Fix a race between superseding and noticeRequest.
> >
> > How do I generate a diff for the rolled-back patch? Doing
> >
> > $ darcs diff -u --from-patch='^Fix a race' --to-patch='^Fix a race'
> >
> > will generate a patch for the UNDO patch, not for the patch I want.
> > Do I need to use the hashes?
>
> You could use --from-match 'hash xxxx' etc, but there's no very friendly
> way to find the hash of a given patch.
I think the poster meant to point out that though his pattern was
anchored with "^Fix", it still matched "UNDO: ...", because the "UNDO: "
is not really part of the stored patch name. This seems like a bug:
"UNDO: " should be added before the pattern match.
Andrew
More information about the darcs-users
mailing list