Show More
@@ -343,9 +343,11 b' class dirstate(object):' | |||||
343 | for x in sorted(self._map): |
|
343 | for x in sorted(self._map): | |
344 | yield x |
|
344 | yield x | |
345 |
|
345 | |||
346 |
def |
|
346 | def items(self): | |
347 | return self._map.iteritems() |
|
347 | return self._map.iteritems() | |
348 |
|
348 | |||
|
349 | iteritems = items | |||
|
350 | ||||
349 | def parents(self): |
|
351 | def parents(self): | |
350 | return [self._validate(p) for p in self._pl] |
|
352 | return [self._validate(p) for p in self._pl] | |
351 |
|
353 |
@@ -579,9 +579,11 b' class manifestdict(object):' | |||||
579 | c._lm = self._lm.copy() |
|
579 | c._lm = self._lm.copy() | |
580 | return c |
|
580 | return c | |
581 |
|
581 | |||
582 |
def |
|
582 | def items(self): | |
583 | return (x[:2] for x in self._lm.iterentries()) |
|
583 | return (x[:2] for x in self._lm.iterentries()) | |
584 |
|
584 | |||
|
585 | iteritems = items | |||
|
586 | ||||
585 | def iterentries(self): |
|
587 | def iterentries(self): | |
586 | return self._lm.iterentries() |
|
588 | return self._lm.iterentries() | |
587 |
|
589 | |||
@@ -788,7 +790,7 b' class treemanifest(object):' | |||||
788 | for x in n.iterentries(): |
|
790 | for x in n.iterentries(): | |
789 | yield x |
|
791 | yield x | |
790 |
|
792 | |||
791 |
def |
|
793 | def items(self): | |
792 | self._load() |
|
794 | self._load() | |
793 | for p, n in sorted(itertools.chain(self._dirs.items(), |
|
795 | for p, n in sorted(itertools.chain(self._dirs.items(), | |
794 | self._files.items())): |
|
796 | self._files.items())): | |
@@ -798,6 +800,8 b' class treemanifest(object):' | |||||
798 | for f, sn in n.iteritems(): |
|
800 | for f, sn in n.iteritems(): | |
799 | yield f, sn |
|
801 | yield f, sn | |
800 |
|
802 | |||
|
803 | iteritems = items | |||
|
804 | ||||
801 | def iterkeys(self): |
|
805 | def iterkeys(self): | |
802 | self._load() |
|
806 | self._load() | |
803 | for p in sorted(itertools.chain(self._dirs, self._files)): |
|
807 | for p in sorted(itertools.chain(self._dirs, self._files)): |
@@ -66,9 +66,11 b' class namespaces(object):' | |||||
66 | def __iter__(self): |
|
66 | def __iter__(self): | |
67 | return self._names.__iter__() |
|
67 | return self._names.__iter__() | |
68 |
|
68 | |||
69 |
def |
|
69 | def items(self): | |
70 | return self._names.iteritems() |
|
70 | return self._names.iteritems() | |
71 |
|
71 | |||
|
72 | iteritems = items | |||
|
73 | ||||
72 | def addnamespace(self, namespace, order=None): |
|
74 | def addnamespace(self, namespace, order=None): | |
73 | """register a namespace |
|
75 | """register a namespace | |
74 |
|
76 |
General Comments 0
You need to be logged in to leave comments.
Login now