]> thyrsus.com Git - src.git/commitdiff
Assume arg with slash is a filename; allows ./file-name for files with hyphens, also...
authorMark J. Reed <mark.reed@turner.com>
Tue, 18 Nov 2014 20:26:51 +0000 (15:26 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 18 Nov 2014 21:19:20 +0000 (16:19 -0500)
src

diff --git a/src b/src
index 203a44d342eff3b90391c19107b9dae4ea443cd0..7961d29849407544e0c944883ed4ab79a0535f75 100755 (executable)
--- a/src
+++ b/src
@@ -699,7 +699,9 @@ def help_method(*args):
 
 def parse_as_revspec(token):
     "Does this look like something that should be parsed as a revision spec?"
-    if "-" in token or ".." in token:
+    if "/" in token:
+        return False
+    elif "-" in token or ".." in token:
         return True
     elif token.isdigit():
         return True