Commits

Greg Ward committed a2ad755

Improve help text (in particular, clarify meaning of --print0).

Comments (0)

Files changed (2)

 def onsub(ui, repo, *args, **opts):
     """execute a command in each subrepository
 
-    The command is executed with the current working directory set to
-    the root of each subrepository. By default, execution stops if the
-    command returns a non-zero exit code. Use --ignore-errors to
-    override this.
+    Executes CMD with the current working directory set to the root of
+    each subrepository. By default, execution stops if CMD returns a
+    non-zero exit code. Use --ignore-errors to override this.
 
-    Use --verbose/-v to print the name of each subrepo before the
-    command is executed, use --print0/-0 to terminate this line with a
-    NUL character instead of a newline. This can for instance be
-    useful in combination with :hg:`status --print0`.
+    Use --verbose/-v to print the command being run and the subrepo
+    name for each run of CMD in a subrepo. Alternately, use
+    --print0/-0 to print just the subrepo name followed by a NUL
+    character instead of a newline. This can be useful in combination
+    with :hg:`status --print0`.
 
     The command has access to the following environment variables:
 
   
   execute a command in each subrepository
   
-      The command is executed with the current working directory set to the root
-      of each subrepository. By default, execution stops if the command returns
-      a non-zero exit code. Use --ignore-errors to override this.
+      Executes CMD with the current working directory set to the root of each
+      subrepository. By default, execution stops if CMD returns a non-zero exit
+      code. Use --ignore-errors to override this.
   
-      Use --verbose/-v to print the name of each subrepo before the command is
-      executed, use --print0/-0 to terminate this line with a NUL character
-      instead of a newline. This can for instance be useful in combination with
-      "hg status --print0".
+      Use --verbose/-v to print the command being run and the subrepo name for
+      each run of CMD in a subrepo. Alternately, use --print0/-0 to print just
+      the subrepo name followed by a NUL character instead of a newline. This
+      can be useful in combination with "hg status --print0".
   
       The command has access to the following environment variables:
   
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.