mercurial/mergestate.py
changeset 45493 2c10876bb320
parent 45492 08c6d6962b2a
child 45494 9ea4b52ac6bb
equal deleted inserted replaced
45492:08c6d6962b2a 45493:2c10876bb320
   175 
   175 
   176     statepathv1 = b'merge/state'
   176     statepathv1 = b'merge/state'
   177     statepathv2 = b'merge/state2'
   177     statepathv2 = b'merge/state2'
   178 
   178 
   179     @staticmethod
   179     @staticmethod
   180     def clean(repo, node=None, other=None, labels=None):
   180     def clean(repo):
   181         """Initialize a brand new merge state, removing any existing state on
   181         """Initialize a brand new merge state, removing any existing state on
   182         disk."""
   182         disk."""
   183         ms = mergestate(repo)
   183         ms = mergestate(repo)
   184         ms.reset()
   184         ms.reset()
   185         ms.start(node, other, labels)
       
   186         return ms
   185         return ms
   187 
   186 
   188     @staticmethod
   187     @staticmethod
   189     def read(repo):
   188     def read(repo):
   190         """Initialize the merge state, reading it from disk."""
   189         """Initialize the merge state, reading it from disk."""