equal
deleted
inserted
replaced
780 self.invalidate(clearfilecache=True) |
780 self.invalidate(clearfilecache=True) |
781 |
781 |
782 def __getitem__(self, changeid): |
782 def __getitem__(self, changeid): |
783 if changeid is None: |
783 if changeid is None: |
784 return context.workingctx(self) |
784 return context.workingctx(self) |
|
785 if isinstance(changeid, context.basectx): |
|
786 return changeid |
785 if isinstance(changeid, slice): |
787 if isinstance(changeid, slice): |
786 # wdirrev isn't contiguous so the slice shouldn't include it |
788 # wdirrev isn't contiguous so the slice shouldn't include it |
787 return [context.changectx(self, i) |
789 return [context.changectx(self, i) |
788 for i in xrange(*changeid.indices(len(self))) |
790 for i in xrange(*changeid.indices(len(self))) |
789 if i not in self.changelog.filteredrevs] |
791 if i not in self.changelog.filteredrevs] |