Finding changesets in mercurial by grepping the patch -


What is a change to change (change code), unlike log message or file name?

I have seen very well in "Hg aid reorder" and I think there is no good way to do this. Here's the best hack I have come up, but I hope I have not got a capability, or someone can do better.

hg log -M -u goldberg -p | Grep '(^ changeset: \ | <>> pattern & gt; )' | Grep-C 1 ' & lt; Pattern & gt; '

(and then select the amendment number for later work with those modifications manually)

You should take a look.

  Modification of files for a regular expression This command behaves differently from Unix grep, it only accepts Python / Perl regexps. This repository searches history, not a work directory. It always prints the revision number in which a match appears. By default, grep only prints the output for the first revision of the file in which it finds a match. It is available to print each amendment in which the status of the match changes ("-" for non-matches that match, or match for a non-match that matches "+"), - Use the -all flag if a match is found, returns 0, otherwise 1.    

You can type hg grep --help for more information.

Comments