revset: allow slashes in symbols stable
authorMatt Mackall <mpm@selenic.com>
Fri, 20 Jan 2012 14:18:51 -0600
branchstable
changeset 15949 d5edbbf55a75
parent 15948 536856769512
child 15950 27f56b73522c
revset: allow slashes in symbols suggested by Ryan Kelly
mercurial/revset.py
--- a/mercurial/revset.py	Fri Jan 20 13:19:32 2012 -0200
+++ b/mercurial/revset.py	Fri Jan 20 14:18:51 2012 -0600
@@ -79,7 +79,7 @@
             pos += 1
             while pos < l: # find end of symbol
                 d = program[pos]
-                if not (d.isalnum() or d in "._" or ord(d) > 127):
+                if not (d.isalnum() or d in "._/" or ord(d) > 127):
                     break
                 if d == '.' and program[pos - 1] == '.': # special case for ..
                     pos -= 1