comparison mercurial/revset.py @ 15949:d5edbbf55a75 stable

revset: allow slashes in symbols suggested by Ryan Kelly
author Matt Mackall <mpm@selenic.com>
date Fri, 20 Jan 2012 14:18:51 -0600
parents f8272c70eb7f
children 6e37b8282aa2
comparison
equal deleted inserted replaced
15948:536856769512 15949:d5edbbf55a75
77 elif c.isalnum() or c in '._' or ord(c) > 127: # gather up a symbol/keyword 77 elif c.isalnum() or c in '._' or ord(c) > 127: # gather up a symbol/keyword
78 s = pos 78 s = pos
79 pos += 1 79 pos += 1
80 while pos < l: # find end of symbol 80 while pos < l: # find end of symbol
81 d = program[pos] 81 d = program[pos]
82 if not (d.isalnum() or d in "._" or ord(d) > 127): 82 if not (d.isalnum() or d in "._/" or ord(d) > 127):
83 break 83 break
84 if d == '.' and program[pos - 1] == '.': # special case for .. 84 if d == '.' and program[pos - 1] == '.': # special case for ..
85 pos -= 1 85 pos -= 1
86 break 86 break
87 pos += 1 87 pos += 1