hgext/mq.py
changeset 48913 f254fc73d956
parent 48875 6000f5b25c9b
child 48946 642e31cb55f0
equal deleted inserted replaced
48912:a0674e916fb6 48913:f254fc73d956
  2022                                 if dst in a:
  2022                                 if dst in a:
  2023                                     copies[src].append(dst)
  2023                                     copies[src].append(dst)
  2024                             # we can't copy a file created by the patch itself
  2024                             # we can't copy a file created by the patch itself
  2025                             if dst in copies:
  2025                             if dst in copies:
  2026                                 del copies[dst]
  2026                                 del copies[dst]
  2027                         for src, dsts in pycompat.iteritems(copies):
  2027                         for src, dsts in copies.items():
  2028                             for dst in dsts:
  2028                             for dst in dsts:
  2029                                 repo.dirstate.copy(src, dst)
  2029                                 repo.dirstate.copy(src, dst)
  2030                     else:
  2030                     else:
  2031                         for dst in a:
  2031                         for dst in a:
  2032                             repo.dirstate.update_file(
  2032                             repo.dirstate.update_file(
  4285 
  4285 
  4286     entry = extensions.wrapcommand(commands.table, b'init', mqinit)
  4286     entry = extensions.wrapcommand(commands.table, b'init', mqinit)
  4287     entry[1].extend(mqopt)
  4287     entry[1].extend(mqopt)
  4288 
  4288 
  4289     def dotable(cmdtable):
  4289     def dotable(cmdtable):
  4290         for cmd, entry in pycompat.iteritems(cmdtable):
  4290         for cmd, entry in cmdtable.items():
  4291             cmd = cmdutil.parsealiases(cmd)[0]
  4291             cmd = cmdutil.parsealiases(cmd)[0]
  4292             func = entry[0]
  4292             func = entry[0]
  4293             if func.norepo:
  4293             if func.norepo:
  4294                 continue
  4294                 continue
  4295             entry = extensions.wrapcommand(cmdtable, cmd, mqcommand)
  4295             entry = extensions.wrapcommand(cmdtable, cmd, mqcommand)