mercurial/cmdutil.py
changeset 40295 fa88170c10bb
parent 40101 57500950f40e
child 40346 943248e47864
equal deleted inserted replaced
40294:fabbf9310025 40295:fa88170c10bb
   183             originalchunks:
   183             originalchunks:
   184             newlyaddedandmodifiedfiles.add(chunk.header.filename())
   184             newlyaddedandmodifiedfiles.add(chunk.header.filename())
   185     return newlyaddedandmodifiedfiles
   185     return newlyaddedandmodifiedfiles
   186 
   186 
   187 def parsealiases(cmd):
   187 def parsealiases(cmd):
   188     return cmd.lstrip("^").split("|")
   188     return cmd.split("|")
   189 
   189 
   190 def setupwrapcolorwrite(ui):
   190 def setupwrapcolorwrite(ui):
   191     # wrap ui.write so diff output can be labeled/colorized
   191     # wrap ui.write so diff output can be labeled/colorized
   192     def wrapwrite(orig, *args, **kw):
   192     def wrapwrite(orig, *args, **kw):
   193         label = kw.pop(r'label', '')
   193         label = kw.pop(r'label', '')
   671     """
   671     """
   672     choice = {}
   672     choice = {}
   673     debugchoice = {}
   673     debugchoice = {}
   674 
   674 
   675     if cmd in table:
   675     if cmd in table:
   676         # short-circuit exact matches, "log" alias beats "^log|history"
   676         # short-circuit exact matches, "log" alias beats "log|history"
   677         keys = [cmd]
   677         keys = [cmd]
   678     else:
   678     else:
   679         keys = table.keys()
   679         keys = table.keys()
   680 
   680 
   681     allcmds = []
   681     allcmds = []