changeset 23261 | 79858e66a7ce |
parent 23260 | 565f97e71ce3 |
child 23271 | 76302f5ceba4 |
--- a/mercurial/util.py Sun Nov 09 13:15:28 2014 -0800 +++ b/mercurial/util.py Wed Oct 15 12:39:19 2014 -0700 @@ -372,6 +372,9 @@ def iteritems(self): for k in self._list: yield k, self[k] + def insert(self, index, key, val): + self._list.insert(index, key) + dict.__setitem__(self, key, val) class lrucachedict(object): '''cache most recent gets from or sets to this dictionary'''