101 "postfixfile" |
101 "postfixfile" |
102 Run once for each file in each revision where any fixer tools made changes |
102 Run once for each file in each revision where any fixer tools made changes |
103 to the file content. Provides "$HG_REV" and "$HG_PATH" to identify the file, |
103 to the file content. Provides "$HG_REV" and "$HG_PATH" to identify the file, |
104 and "$HG_METADATA" with a map of fixer names to metadata values from fixer |
104 and "$HG_METADATA" with a map of fixer names to metadata values from fixer |
105 tools that affected the file. Fixer tools that didn't affect the file have a |
105 tools that affected the file. Fixer tools that didn't affect the file have a |
106 valueof None. Only fixer tools that executed are present in the metadata. |
106 value of None. Only fixer tools that executed are present in the metadata. |
107 |
107 |
108 "postfix" |
108 "postfix" |
109 Run once after all files and revisions have been handled. Provides |
109 Run once after all files and revisions have been handled. Provides |
110 "$HG_REPLACEMENTS" with information about what revisions were created and |
110 "$HG_REPLACEMENTS" with information about what revisions were created and |
111 made obsolete. Provides a boolean "$HG_WDIRWRITTEN" to indicate whether any |
111 made obsolete. Provides a boolean "$HG_WDIRWRITTEN" to indicate whether any |
112 files in the working copy were updated. Provides a list "$HG_METADATA" |
112 files in the working copy were updated. Provides a list "$HG_METADATA" |
113 mapping fixer tool names to lists of metadata values returned from |
113 mapping fixer tool names to lists of metadata values returned from |
114 executions that modified a file. This aggregates the same metadata |
114 executions that modified a file. This aggregates the same metadata |
115 previously passed to the "postfixfile" hook. |
115 previously passed to the "postfixfile" hook. |
116 |
116 |
117 Fixer tools are run the in repository's root directory. This allows them to read |
117 Fixer tools are run in the repository's root directory. This allows them to read |
118 configuration files from the working copy, or even write to the working copy. |
118 configuration files from the working copy, or even write to the working copy. |
119 The working copy is not updated to match the revision being fixed. In fact, |
119 The working copy is not updated to match the revision being fixed. In fact, |
120 several revisions may be fixed in parallel. Writes to the working copy are not |
120 several revisions may be fixed in parallel. Writes to the working copy are not |
121 amended into the revision being fixed; fixer tools should always write fixed |
121 amended into the revision being fixed; fixer tools should always write fixed |
122 file content back to stdout as documented above. |
122 file content back to stdout as documented above. |