From: Mark J. Reed Date: Tue, 18 Nov 2014 20:26:51 +0000 (-0500) Subject: Assume arg with slash is a filename; allows ./file-name for files with hyphens, also... X-Git-Tag: 0.10~8 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=0c96e9e3d0f981438db176f752b49d465f2b8c61;p=src.git Assume arg with slash is a filename; allows ./file-name for files with hyphens, also ../file for files in parent dir --- diff --git a/src b/src index 203a44d..7961d29 100755 --- 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