Submitter | Pierre-Yves David |
---|---|
Date | May 2, 2014, 1:45 a.m. |
Message ID | <3bb87edcae46d4362641.1398995126@marginatus.alto.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/4478/ |
State | Accepted |
Commit | f0f8100968429a31948eb74f53b8dd22b7c7e820 |
Headers | show |
Comments
Patch
diff --git a/contrib/revsetbenchmarks.py b/contrib/revsetbenchmarks.py --- a/contrib/revsetbenchmarks.py +++ b/contrib/revsetbenchmarks.py @@ -64,10 +64,14 @@ def getrevs(spec): sys.exit(exc.returncode) return [r for r in out.split() if r] +if len(sys.argv) < 2: + print >> sys.stderr, 'usage: %s <revs> [file]' % sys.argv[0] + sys.exit(255) + target_rev = sys.argv[1] revsetsfile = sys.stdin if len(sys.argv) > 2: revsetsfile = open(sys.argv[2])