Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Matt Mackall
- Tue, 27 Mar 2012 21:17:46
Show More
hgext/convert/git.py
0
+2
0
@@
-97,6
+97,8
b' class convert_git(converter_source):'
97
seen . add ( f )
97
seen . add ( f )
98
entry = entry . split ()
98
entry = entry . split ()
99
h = entry [ 3 ]
99
h = entry [ 3 ]
100
if entry [ 1 ] == '160000' :
101
raise util . Abort ( 'git submodules are not supported!' )
100
p = ( entry [ 1 ] == "100755" )
102
p = ( entry [ 1 ] == "100755" )
101
s = ( entry [ 1 ] == "120000" )
103
s = ( entry [ 1 ] == "120000" )
102
self . modecache [( f , h )] = ( p and "x" ) or ( s and "l" ) or ""
104
self . modecache [( f , h )] = ( p and "x" ) or ( s and "l" ) or ""
mercurial/dispatch.py
0
+2
-2
@@
-218,7
+218,7
b' def _runcatch(req):'
218
218
219
def aliasargs ( fn , givenargs ):
219
def aliasargs ( fn , givenargs ):
220
args = getattr ( fn , 'args' , [])
220
args = getattr ( fn , 'args' , [])
221
if args and givenargs:
221
if args :
222
cmd = ' ' . join ( map ( util . shellquote , args ))
222
cmd = ' ' . join ( map ( util . shellquote , args ))
223
223
224
nums = []
224
nums = []
@@
-227,7
+227,7
b' def aliasargs(fn, givenargs):'
227
nums . append ( num )
227
nums . append ( num )
228
if num < len ( givenargs ):
228
if num < len ( givenargs ):
229
return givenargs [ num ]
229
return givenargs [ num ]
230
return ''
230
raise util . Abort ( _ ( 'too few arguments for command alias' ))
231
cmd = re . sub ( r '\$(\d+|\$)' , replacer , cmd )
231
cmd = re . sub ( r '\$(\d+|\$)' , replacer , cmd )
232
givenargs = [ x for i , x in enumerate ( givenargs )
232
givenargs = [ x for i , x in enumerate ( givenargs )
233
if i not in nums ]
233
if i not in nums ]
mercurial/phases.py
0
+3
-2
@@
-148,8
+148,9
b' def filterunknown(repo, phaseroots=None)'
148
missing = [ node for node in nodes if node not in nodemap ]
148
missing = [ node for node in nodes if node not in nodemap ]
149
if missing :
149
if missing :
150
for mnode in missing :
150
for mnode in missing :
151
msg = 'Removing unknown node %(n)s from %(p)i -phase boundary'
151
repo . ui . debug (
152
repo . ui . debug ( msg , { 'n' : short ( mnode ), 'p' : phase })
152
'removing unknown node %s from %i -phase boundary \n '
153
% ( short ( mnode ), phase ))
153
nodes . symmetric_difference_update ( missing )
154
nodes . symmetric_difference_update ( missing )
154
repo . _dirtyphases = True
155
repo . _dirtyphases = True
155
156
tests/test-alias.t
0
+6
0
@@
-134,6
+134,12
b' with opts and whitespace'
134
134
135
positional arguments
135
positional arguments
136
136
137
$ hg positional
138
abort : too few arguments for command alias
139
[ 255 ]
140
$ hg positional a
141
abort : too few arguments for command alias
142
[ 255 ]
137
$ hg positional 'node|short' rev
143
$ hg positional 'node|short' rev
138
0 e63c23eaa88a | 1970 - 01 - 01 00:00 + 0000
144
0 e63c23eaa88a | 1970 - 01 - 01 00:00 + 0000
139
145
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