##// 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 14 bin,
15 15 hex,
16 16 nullid,
17 wdirid,
17 18 )
18 19
19 20 from . import (
@@ -535,6 +536,9 b' class changelog(revlog.revlog):'
535 536 # overlay over the standard revlog._addrevision to track the new
536 537 # revision on the transaction.
537 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 542 node = super(changelog, self)._addrevision(node, rawtext, transaction,
539 543 *args, **kwargs)
540 544 revs = transaction.changes.get('revs')
General Comments 0
You need to be logged in to leave comments. Login now