[darcs-users] [trackdown] Getting the patch id

Eric Y. Kow eric.kow at gmail.com
Mon Apr 23 17:55:48 UTC 2007


Hi Stephane,

On Sun, Apr 22, 2007 at 21:53:18 +0200, Stephane Bortzmeyer wrote:
> darcs trackdown allows me to find out the first occurrence of a string
> (for instance "when did I add Atom support in Site.tmpl?"):

Well, for each patch it unpulls, trackdown -v outputs 'Trying without
the patch:' and then a patch name.

> % darcs trackdown -v 'grep -i atom Site.tmpl'                        

I might be confusing myself here, but wouldn't you want grep -I -i?
The idea is that you want to look for cases where Site.tmpl does *not*
have atom in it (so that you know the patch that was just removed was
the one that introduced it).

Also you might be interested in darcs changes, which is typically where
I go to find out about this stuff (assuming I write the appropriate
patch comments).  Changes -v also shows you the contents of each patch,
but watch out, because if you do darcs changes -v Site.tmpl, you will
also get changes to all files, within the relevant patches.

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20070423/4113b0e3/attachment.pgp 


More information about the darcs-users mailing list