Show More
@@ -128,6 +128,12 class localrepository(repo.repository): | |||
|
128 | 128 | return context.workingctx(self) |
|
129 | 129 | return context.changectx(self, changeid) |
|
130 | 130 | |
|
131 | def __contains__(self, changeid): | |
|
132 | try: | |
|
133 | return bool(self.lookup(changeid)) | |
|
134 | except error.RepoLookupError: | |
|
135 | return False | |
|
136 | ||
|
131 | 137 | def __nonzero__(self): |
|
132 | 138 | return True |
|
133 | 139 |
General Comments 0
You need to be logged in to leave comments.
Login now