[PATCH] dirstate: copyedit exception for no beginparentchange call

Siddharth Agarwal sid0 at fb.com
Wed Sep 17 15:08:23 CDT 2014


# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1410984483 25200
#      Wed Sep 17 13:08:03 2014 -0700
# Node ID 8b3f6c781ee228d4863c1c426d55dc7abb3a0417
# Parent  48791c2bea1ceda4e4f28bc11651e281d636ce1a
dirstate: copyedit exception for no beginparentchange call

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -257,8 +257,8 @@
         See localrepo.setparents()
         """
         if self._parentwriters == 0:
-            raise ValueError("cannot set dirstate parent without " +
-                " calling dirstate.begingparentchange")
+            raise ValueError("cannot set dirstate parent without "
+                "calling dirstate.beginparentchange")
 
         self._dirty = self._dirtypl = True
         oldp2 = self._pl[1]


More information about the Mercurial-devel mailing list