Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Matt Mackall
- Wed, 24 Jun 2015 18:41:27
Show More
mercurial/match.py
0
+2
0
@@
-505,6
+505,8
def _regex(kind, pat, globsuffix):
505
if kind == 're' :
505
if kind == 're' :
506
return pat
506
return pat
507
if kind == 'path' :
507
if kind == 'path' :
508
if pat == '.' :
509
return ''
508
return '^' + util . re . escape ( pat ) + '(?:/|$)'
510
return '^' + util . re . escape ( pat ) + '(?:/|$)'
509
if kind == 'relglob' :
511
if kind == 'relglob' :
510
return '(?:|.*/)' + _globre ( pat ) + globsuffix
512
return '(?:|.*/)' + _globre ( pat ) + globsuffix
mercurial/templater.py
0
+2
-2
@@
-47,7
+47,7
def tokenize(program, start, end):
47
s = pos
47
s = pos
48
while pos < end : # find closing quote
48
while pos < end : # find closing quote
49
d = program [ pos ]
49
d = program [ pos ]
50
if decode and d == ' \\ ' : # skip over escaped characters
50
if d == ' \\ ' : # skip over escaped characters
51
pos += 2
51
pos += 2
52
continue
52
continue
53
if d == c :
53
if d == c :
@@
-450,7
+450,7
def revset(context, mapping, args):
450
# i18n: "revset" is a keyword
450
# i18n: "revset" is a keyword
451
raise error . ParseError ( _ ( "revset expects one or more arguments" ))
451
raise error . ParseError ( _ ( "revset expects one or more arguments" ))
452
452
453
raw = args [ 0 ][ 1 ]
453
raw = stringify ( args [ 0 ][ 0 ]( context , mapping , args [ 0 ][ 1 ]))
454
ctx = mapping [ 'ctx' ]
454
ctx = mapping [ 'ctx' ]
455
repo = ctx . repo ()
455
repo = ctx . repo ()
456
456
tests/test-command-template.t
0
+14
0
@@
-2849,6
+2849,17
Test string escaping:
2849
<> \ n < ] >
2849
<> \ n < ] >
2850
<> \ n <
2850
<> \ n <
2851
2851
2852
Test string escaping of quotes :
2853
2854
$ hg log - Ra - r0 - T ' {"\""} \n '
2855
"
2856
$ hg log -Ra -r0 -T '{" \\\ "" } \n '
2857
\ "
2858
$ hg log -Ra -r0 -T '{r" \ "" } \ n '
2859
\"
2860
$ hg log -Ra -r0 -T ' { r " \\\" " } \ n '
2861
\\\"
2862
2852
Test exception in quoted template . single backslash before quotation mark is
2863
Test exception in quoted template. single backslash before quotation mark is
2853
stripped before parsing :
2864
stripped before parsing:
2854
2865
@@
-3121,6
+3132,9
Test revset function
3121
Rev : 0
3132
Rev : 0
3122
Ancestor : 0
3133
Ancestor : 0
3123
3134
3135
$ hg log -- template ' {revset("TIP"|lower)} \n ' - l1
3136
2
3137
3124
Test active bookmark templating
3138
Test active bookmark templating
3125
3139
3126
$ hg book foo
3140
$ hg book foo
tests/test-locate.t
0
+13
0
@@
-106,6
+106,19
Issue294: hg remove --after dir fails wh
106
$ mkdir otherdir
106
$ mkdir otherdir
107
$ cd otherdir
107
$ cd otherdir
108
108
109
$ hg files path :
110
../ b ( glob )
111
../ dir . h / foo ( glob )
112
../ t . h ( glob )
113
../ t / e . h ( glob )
114
../ t / x ( glob )
115
$ hg files path :.
116
../ b ( glob )
117
../ dir . h / foo ( glob )
118
../ t . h ( glob )
119
../ t / e . h ( glob )
120
../ t / x ( glob )
121
109
$ hg locate b
122
$ hg locate b
110
.. / b ( glob )
123
.. / b ( glob )
111
.. / t / b ( glob )
124
.. / t / b ( glob )
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages