mercurial/merge.py
changeset 29775 978b907d9b36
parent 29774 a7f8939641aa
child 29831 1316c7cccc76
equal deleted inserted replaced
29774:a7f8939641aa 29775:978b907d9b36
  1537             m, args, msg = actionbyfile[f]
  1537             m, args, msg = actionbyfile[f]
  1538             prompts = filemerge.partextras(labels)
  1538             prompts = filemerge.partextras(labels)
  1539             prompts['f'] = f
  1539             prompts['f'] = f
  1540             if m == 'cd':
  1540             if m == 'cd':
  1541                 if repo.ui.promptchoice(
  1541                 if repo.ui.promptchoice(
  1542                     _("local%(l)s changed %(f)s which remote%(o)s deleted\n"
  1542                     _("local%(l)s changed %(f)s which other%(o)s deleted\n"
  1543                       "use (c)hanged version or (d)elete?"
  1543                       "use (c)hanged version or (d)elete?"
  1544                       "$$ &Changed $$ &Delete") % prompts, 0):
  1544                       "$$ &Changed $$ &Delete") % prompts, 0):
  1545                     actionbyfile[f] = ('r', None, "prompt delete")
  1545                     actionbyfile[f] = ('r', None, "prompt delete")
  1546                 elif f in p1:
  1546                 elif f in p1:
  1547                     actionbyfile[f] = ('am', None, "prompt keep")
  1547                     actionbyfile[f] = ('am', None, "prompt keep")
  1549                     actionbyfile[f] = ('a', None, "prompt keep")
  1549                     actionbyfile[f] = ('a', None, "prompt keep")
  1550             elif m == 'dc':
  1550             elif m == 'dc':
  1551                 f1, f2, fa, move, anc = args
  1551                 f1, f2, fa, move, anc = args
  1552                 flags = p2[f2].flags()
  1552                 flags = p2[f2].flags()
  1553                 if repo.ui.promptchoice(
  1553                 if repo.ui.promptchoice(
  1554                     _("remote%(o)s changed %(f)s which local%(l)s deleted\n"
  1554                     _("other%(o)s changed %(f)s which local%(l)s deleted\n"
  1555                       "use (c)hanged version or leave (d)eleted?"
  1555                       "use (c)hanged version or leave (d)eleted?"
  1556                       "$$ &Changed $$ &Deleted") % prompts, 0) == 0:
  1556                       "$$ &Changed $$ &Deleted") % prompts, 0) == 0:
  1557                     actionbyfile[f] = ('g', (flags, False), "prompt recreating")
  1557                     actionbyfile[f] = ('g', (flags, False), "prompt recreating")
  1558                 else:
  1558                 else:
  1559                     del actionbyfile[f]
  1559                     del actionbyfile[f]