[PATCH 1 of 3] revsetbenchmark: makes it clear that revset may be read from sdtin

Pierre-Yves David pierre-yves.david at ens-lyon.org
Tue Sep 23 19:31:16 CDT 2014


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1411517329 25200
#      Tue Sep 23 17:08:49 2014 -0700
# Node ID b0b9aadb625d62922eb6dae164b9934f314807db
# Parent  4d03b8dca8ab420ce9ca3bf86d390753e128db49
revsetbenchmark: makes it clear that revset may be read from sdtin

diff --git a/contrib/revsetbenchmarks.py b/contrib/revsetbenchmarks.py
--- a/contrib/revsetbenchmarks.py
+++ b/contrib/revsetbenchmarks.py
@@ -72,11 +72,12 @@ def getrevs(spec):
     return [r for r in out.split() if r]
 
 
 parser = OptionParser(usage="usage: %prog [options] <revs>")
 parser.add_option("-f", "--file",
-                  help="read revset from FILE", metavar="FILE")
+                  help="read revset from FILE (stdin if omited)",
+                  metavar="FILE")
 parser.add_option("-R", "--repo",
                   help="run benchmark on REPO", metavar="REPO")
 
 (options, args) = parser.parse_args()
 


More information about the Mercurial-devel mailing list