mercurial/changelog.py
changeset 34028 bfb38c5cebf4
parent 33979 3939b30d0cb7
child 34131 0fa781320203
--- a/mercurial/changelog.py	Tue Aug 22 21:21:43 2017 -0400
+++ b/mercurial/changelog.py	Wed Aug 30 09:21:31 2017 -0700
@@ -14,7 +14,6 @@
     bin,
     hex,
     nullid,
-    wdirid,
 )
 
 from . import (
@@ -536,9 +535,6 @@
         # overlay over the standard revlog._addrevision to track the new
         # revision on the transaction.
         rev = len(self)
-        if node == wdirid: # nullid is checked in super method
-            raise error.RevlogError(_("%s: attempt to add wdir revision") %
-                                    (self.indexfile))
         node = super(changelog, self)._addrevision(node, rawtext, transaction,
                                                    *args, **kwargs)
         revs = transaction.changes.get('revs')