significado precio nike meaning mercurial

precio - mercurial svn



Cómo ver la versión anterior de un archivo en Mercurial (3)

Para extraer una revisión específica de un archivo específico, puede hacer esto en Windows:

hg cat "<FileToBeExtractedPath>" -r 9 > "<ExtractionPath>"

Aquí, 9 es el número de revisión.

O mejor:

hg cat "<FileToBeExtractedPath>" -r 9 -o "<ExtractionPath>"

Estoy usando mercurial para el control de versiones de algunos archivos en un directorio. Supongamos que tengo 10 confirmaciones (10 conjuntos de cambios o revisiones). Solo quiero ver cómo se ve un archivo en particular, digamos thisFile.py, en su séptima revisión. No quiero volver a esta versión anterior. No quiero ir y hacer cambios o corregir cualquier error en esta versión anterior. Simplemente quiero verlo, sin afectar la versión más reciente del archivo o el historial comercial de ninguna manera. ¿Hay una forma sencilla de hacerlo?


Utilice el comando hg cat con el argumento -r (revisión).

hg cat path_to/myfile.cpp -r 46

donde 46 es el número de revisión (use hg log para ver el historial de revisiones)


hg cat [OPTION]... FILE... Print the specified files as they were at the given revision. If no revision is given, the parent of the working directory is used, or tip if no revision is checked out. Output may be to a file, in which case the name of the file is given using a format string. The formatting rules are the same as for the export command, with the following additions: %s: basename of file being printed %d: dirname of file being printed, or ''.'' if in repository root %p: root-relative path name of file being printed Returns 0 on success. options: -o, --output print output to file with formatted name -r, --rev print the given revision --decode apply any matching decode filter -I, --include include names matching the given patterns -X, --exclude exclude names matching the given patterns