##// END OF EJS Templates
changelog: abort on attempt to write wdir revision...
Martin von Zweigbergk -
r33981:3939b30d default
parent child Browse files
Show More
@@ -14,6 +14,7 b' from .node import ('
14 bin,
14 bin,
15 hex,
15 hex,
16 nullid,
16 nullid,
17 wdirid,
17 )
18 )
18
19
19 from . import (
20 from . import (
@@ -535,6 +536,9 b' class changelog(revlog.revlog):'
535 # overlay over the standard revlog._addrevision to track the new
536 # overlay over the standard revlog._addrevision to track the new
536 # revision on the transaction.
537 # revision on the transaction.
537 rev = len(self)
538 rev = len(self)
539 if node == wdirid: # nullid is checked in super method
540 raise error.RevlogError(_("%s: attempt to add wdir revision") %
541 (self.indexfile))
538 node = super(changelog, self)._addrevision(node, rawtext, transaction,
542 node = super(changelog, self)._addrevision(node, rawtext, transaction,
539 *args, **kwargs)
543 *args, **kwargs)
540 revs = transaction.changes.get('revs')
544 revs = transaction.changes.get('revs')
General Comments 0
You need to be logged in to leave comments. Login now