##// END OF EJS Templates
command: automatically create alias for command using '-' in names...
marmoute -
r46858:012e25ab default
parent child Browse files
Show More
@@ -359,7 +359,17 b' def newandmodified(chunks, originalchunk'
359 359
360 360
361 361 def parsealiases(cmd):
362 return cmd.split(b"|")
362 base_aliases = cmd.split(b"|")
363 all_aliases = set(base_aliases)
364 extra_aliases = []
365 for alias in base_aliases:
366 if b'-' in alias:
367 folded_alias = alias.replace(b'-', b'')
368 if folded_alias not in all_aliases:
369 all_aliases.add(folded_alias)
370 extra_aliases.append(folded_alias)
371 base_aliases.extend(extra_aliases)
372 return base_aliases
363 373
364 374
365 375 def setupwrapcolorwrite(ui):
General Comments 0
You need to be logged in to leave comments. Login now