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

login
register
mail settings
Submitter Pierre-Yves David
Date Sept. 24, 2014, 12:31 a.m.
Message ID <b0b9aadb625d62922eb6.1411518676@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/5944/
State Accepted
Headers show

Comments

Pierre-Yves David - Sept. 24, 2014, 12:31 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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

Patch

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()