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