##// 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 97 seen.add(f)
98 98 entry = entry.split()
99 99 h = entry[3]
100 if entry[1] == '160000':
101 raise util.Abort('git submodules are not supported!')
100 102 p = (entry[1] == "100755")
101 103 s = (entry[1] == "120000")
102 104 self.modecache[(f, h)] = (p and "x") or (s and "l") or ""
@@ -218,7 +218,7 b' def _runcatch(req):'
218 218
219 219 def aliasargs(fn, givenargs):
220 220 args = getattr(fn, 'args', [])
221 if args and givenargs:
221 if args:
222 222 cmd = ' '.join(map(util.shellquote, args))
223 223
224 224 nums = []
@@ -227,7 +227,7 b' def aliasargs(fn, givenargs):'
227 227 nums.append(num)
228 228 if num < len(givenargs):
229 229 return givenargs[num]
230 return ''
230 raise util.Abort(_('too few arguments for command alias'))
231 231 cmd = re.sub(r'\$(\d+|\$)', replacer, cmd)
232 232 givenargs = [x for i, x in enumerate(givenargs)
233 233 if i not in nums]
@@ -148,8 +148,9 b' def filterunknown(repo, phaseroots=None)'
148 148 missing = [node for node in nodes if node not in nodemap]
149 149 if missing:
150 150 for mnode in missing:
151 msg = 'Removing unknown node %(n)s from %(p)i-phase boundary'
152 repo.ui.debug(msg, {'n': short(mnode), 'p': phase})
151 repo.ui.debug(
152 'removing unknown node %s from %i-phase boundary\n'
153 % (short(mnode), phase))
153 154 nodes.symmetric_difference_update(missing)
154 155 repo._dirtyphases = True
155 156
@@ -134,6 +134,12 b' with opts and whitespace'
134 134
135 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 143 $ hg positional 'node|short' rev
138 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