mercurial/merge.py
changeset 7848 89e05c02a4af
parent 7768 5bf5fd1e2a74
child 8109 496ae1ea4698
--- a/mercurial/merge.py	Mon Mar 16 16:58:41 2009 -0500
+++ b/mercurial/merge.py	Mon Mar 16 16:58:41 2009 -0500
@@ -14,9 +14,10 @@
     def __init__(self, repo):
         self._repo = repo
         self._read()
-    def reset(self, node):
+    def reset(self, node=None):
         self._state = {}
-        self._local = node
+        if node:
+            self._local = node
         shutil.rmtree(self._repo.join("merge"), True)
     def _read(self):
         self._state = {}