##// END OF EJS Templates
localrepo: support 'rev in repo' syntax
Alexander Solovyov -
r9924:ea3acaae default
parent child Browse files
Show More
@@ -128,6 +128,12 b' class localrepository(repo.repository):'
128 return context.workingctx(self)
128 return context.workingctx(self)
129 return context.changectx(self, changeid)
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 def __nonzero__(self):
137 def __nonzero__(self):
132 return True
138 return True
133
139
General Comments 0
You need to be logged in to leave comments. Login now