Show More
@@ -139,9 +139,9 changesets. You can define subsequent al | |||||
139 |
|
139 | |||
140 | stable5 = latest -b stable |
|
140 | stable5 = latest -b stable | |
141 |
|
141 | |||
142 |
|
|
142 | .. note:: It is possible to create aliases with the same names as | |
143 |
commands, which will then override the original |
|
143 | existing commands, which will then override the original | |
144 | almost always a bad idea! |
|
144 | definitions. This is almost always a bad idea! | |
145 |
|
145 | |||
146 |
|
146 | |||
147 | ``auth`` |
|
147 | ``auth`` | |
@@ -232,9 +232,9 filtered by the command. The string OUTF | |||||
232 | of an empty temporary file, where the filtered data must be written by |
|
232 | of an empty temporary file, where the filtered data must be written by | |
233 | the command. |
|
233 | the command. | |
234 |
|
234 | |||
235 |
|
|
235 | .. note:: The tempfile mechanism is recommended for Windows systems, | |
236 |
the standard shell I/O redirection operators often have |
|
236 | where the standard shell I/O redirection operators often have | |
237 | effects and may corrupt the contents of your files. |
|
237 | strange effects and may corrupt the contents of your files. | |
238 |
|
238 | |||
239 | The most common usage is for LF <-> CRLF translation on Windows. For |
|
239 | The most common usage is for LF <-> CRLF translation on Windows. For | |
240 | this, use the "smart" converters which check for binary files:: |
|
240 | this, use the "smart" converters which check for binary files:: | |
@@ -575,16 +575,16 variables it is passed are listed with n | |||||
575 | in ``$HG_PARENT2``. If the update succeeded, ``$HG_ERROR=0``. If the |
|
575 | in ``$HG_PARENT2``. If the update succeeded, ``$HG_ERROR=0``. If the | |
576 | update failed (e.g. because conflicts not resolved), ``$HG_ERROR=1``. |
|
576 | update failed (e.g. because conflicts not resolved), ``$HG_ERROR=1``. | |
577 |
|
577 | |||
578 |
|
|
578 | .. note:: It is generally better to use standard hooks rather than the | |
579 | generic pre- and post- command hooks as they are guaranteed to be |
|
579 | generic pre- and post- command hooks as they are guaranteed to be | |
580 | called in the appropriate contexts for influencing transactions. |
|
580 | called in the appropriate contexts for influencing transactions. | |
581 | Also, hooks like "commit" will be called in all contexts that |
|
581 | Also, hooks like "commit" will be called in all contexts that | |
582 | generate a commit (e.g. tag) and not just the commit command. |
|
582 | generate a commit (e.g. tag) and not just the commit command. | |
583 |
|
583 | |||
584 |
|
|
584 | .. note:: Environment variables with empty values may not be passed to | |
585 |
hooks on platforms such as Windows. As an example, ``$HG_PARENT2`` |
|
585 | hooks on platforms such as Windows. As an example, ``$HG_PARENT2`` | |
586 | have an empty value under Unix-like platforms for non-merge |
|
586 | will have an empty value under Unix-like platforms for non-merge | |
587 | changesets, while it will not be available at all under Windows. |
|
587 | changesets, while it will not be available at all under Windows. | |
588 |
|
588 | |||
589 | The syntax for Python hooks is as follows:: |
|
589 | The syntax for Python hooks is as follows:: | |
590 |
|
590 |
General Comments 0
You need to be logged in to leave comments.
Login now