mirror of https://gitlab.com/ita1024/waf.git
Issue 1218
This commit is contained in:
parent
27aeab577c
commit
5ce68b696a
|
@ -326,10 +326,11 @@ class ConfigSet(object):
|
|||
|
||||
The history is kept in a stack, and is lost during the serialization by :py:meth:`ConfigSet.store`
|
||||
"""
|
||||
self.undo_stack = self.undo_stack + [self.table]
|
||||
orig = self.table
|
||||
tbl = self.table = self.table.copy()
|
||||
for x in tbl.keys():
|
||||
tbl[x] = copy.deepcopy(tbl[x])
|
||||
self.undo_stack = self.undo_stack + [orig]
|
||||
|
||||
def revert(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue