mercurial/revset.py
branchstable
changeset 15949 d5edbbf55a75
parent 15938 f8272c70eb7f
child 15964 6e37b8282aa2
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