equal
deleted
inserted
replaced
206 self.fn = fn |
206 self.fn = fn |
207 self.badalias = True |
207 self.badalias = True |
208 |
208 |
209 return |
209 return |
210 |
210 |
|
211 if self.definition.startswith('!'): |
|
212 def fn(ui, *args): |
|
213 cmd = '%s %s' % (self.definition[1:], ' '.join(args)) |
|
214 return util.system(cmd) |
|
215 self.fn = fn |
|
216 return |
|
217 |
211 args = shlex.split(self.definition) |
218 args = shlex.split(self.definition) |
212 cmd = args.pop(0) |
219 cmd = args.pop(0) |
213 args = map(util.expandpath, args) |
220 args = map(util.expandpath, args) |
214 |
221 |
215 try: |
222 try: |