##// END OF EJS Templates
merge with stable
Matt Mackall -
r16295:ba42eb72 merge default
parent child Browse files
Show More
@@ -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 ""
@@ -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]
@@ -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
@@ -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
General Comments 0
You need to be logged in to leave comments. Login now