mercurial/cmdutil.py
changeset 40366 b14fdf1fb615
parent 40346 943248e47864
child 40367 824b687ff6af
equal deleted inserted replaced
40365:4f37af86d5d5 40366:b14fdf1fb615
   363             [os.unlink(repo.wjoin(c)) for c in newlyaddedandmodifiedfiles]
   363             [os.unlink(repo.wjoin(c)) for c in newlyaddedandmodifiedfiles]
   364             # 3a. apply filtered patch to clean repo  (clean)
   364             # 3a. apply filtered patch to clean repo  (clean)
   365             if backups:
   365             if backups:
   366                 # Equivalent to hg.revert
   366                 # Equivalent to hg.revert
   367                 m = scmutil.matchfiles(repo, backups.keys())
   367                 m = scmutil.matchfiles(repo, backups.keys())
   368                 mergemod.update(repo, repo.dirstate.p1(),
   368                 mergemod.update(repo, repo.dirstate.p1(), branchmerge=False,
   369                         False, True, matcher=m)
   369                                 force=True, matcher=m)
   370 
   370 
   371             # 3b. (apply)
   371             # 3b. (apply)
   372             if dopatch:
   372             if dopatch:
   373                 try:
   373                 try:
   374                     ui.debug('applying patch\n')
   374                     ui.debug('applying patch\n')