significado precio nike mercurial

precio - mercurial significado



Encontrando conjuntos de cambios en mercurial grepping el parche (1)

¿Hay alguna manera en mercurial para encontrar un cambio al dar un patrón en la edición (el código modificado), a diferencia del mensaje de registro o el nombre del archivo?

He visto bastante a fondo en "hg help revsets" y creo que no hay una buena manera de hacerlo. Aquí está el mejor truco que se me ocurrió, pero espero que haya perdido una capacidad, o que alguien pueda hacerlo un poco mejor.

hg log -M -u goldberg -p | grep ''(^changeset:/| <pattern> )'' | grep -C 1 '' <pattern> ''

(y luego seleccionando manualmente el número de revisión para trabajar más adelante con esas revisiones)


Deberías echar un vistazo a hg grep .

Search revisions of files for a regular expression. This command behaves differently than Unix grep. It only accepts Python/Perl regexps. It searches repository history, not the working directory. It always prints the revision number in which a match appears. By default, grep only prints output for the first revision of a file in which it finds a match. To get it to print every revision that contains a change in match status ("-" for a match that becomes a non-match, or "+" for a non-match that becomes a match), use the --all flag. Returns 0 if a match is found, 1 otherwise.

Puede escribir hg grep --help para obtener más información.