mercurial/merge.py
changeset 31323 102d3a30582c
parent 31310 431d4f73249e
child 31379 b6a6df38a802
equal deleted inserted replaced
31322:4282feb79432 31323:102d3a30582c
   122         self._readmergedriver = None
   122         self._readmergedriver = None
   123         if self.mergedriver:
   123         if self.mergedriver:
   124             self._mdstate = 's'
   124             self._mdstate = 's'
   125         else:
   125         else:
   126             self._mdstate = 'u'
   126             self._mdstate = 'u'
   127         shutil.rmtree(self._repo.join('merge'), True)
   127         shutil.rmtree(self._repo.vfs.join('merge'), True)
   128         self._results = {}
   128         self._results = {}
   129         self._dirty = False
   129         self._dirty = False
   130 
   130 
   131     def _read(self):
   131     def _read(self):
   132         """Analyse each record content to restore a serialized state from disk
   132         """Analyse each record content to restore a serialized state from disk
  1676         if not partial:
  1676         if not partial:
  1677             repo.dirstate.beginparentchange()
  1677             repo.dirstate.beginparentchange()
  1678             repo.setparents(fp1, fp2)
  1678             repo.setparents(fp1, fp2)
  1679             recordupdates(repo, actions, branchmerge)
  1679             recordupdates(repo, actions, branchmerge)
  1680             # update completed, clear state
  1680             # update completed, clear state
  1681             util.unlink(repo.join('updatestate'))
  1681             util.unlink(repo.vfs.join('updatestate'))
  1682 
  1682 
  1683             if not branchmerge:
  1683             if not branchmerge:
  1684                 repo.dirstate.setbranch(p2.branch())
  1684                 repo.dirstate.setbranch(p2.branch())
  1685             repo.dirstate.endparentchange()
  1685             repo.dirstate.endparentchange()
  1686 
  1686