Show More
@@ -454,6 +454,10 b' class localrepository(object):' | |||||
454 | def __getitem__(self, changeid): |
|
454 | def __getitem__(self, changeid): | |
455 | if changeid is None: |
|
455 | if changeid is None: | |
456 | return context.workingctx(self) |
|
456 | return context.workingctx(self) | |
|
457 | if isinstance(changeid, slice): | |||
|
458 | return [context.changectx(self, i) | |||
|
459 | for i in xrange(*changeid.indices(len(self))) | |||
|
460 | if i not in self.changelog.filteredrevs] | |||
457 | return context.changectx(self, changeid) |
|
461 | return context.changectx(self, changeid) | |
458 |
|
462 | |||
459 | def __contains__(self, changeid): |
|
463 | def __contains__(self, changeid): |
General Comments 0
You need to be logged in to leave comments.
Login now