##// END OF EJS Templates
localrepo.parents: return null context for no parents
Matt Mackall -
r3164:ff15ba23 default
parent child Browse files
Show More
@@ -330,7 +330,9 b' class localrepository(repo.repository):'
330 else:
330 else:
331 n = self.changelog.lookup(changeid)
331 n = self.changelog.lookup(changeid)
332 pl = self.changelog.parents(n)
332 pl = self.changelog.parents(n)
333 return [self.changectx(n) for n in pl if n != nullid]
333 if pl[1] == nullid:
334 return [self.changectx(pl[0])]
335 return [self.changectx(pl[0]), self.changectx(pl[1])]
334
336
335 def filectx(self, path, changeid=None, fileid=None):
337 def filectx(self, path, changeid=None, fileid=None):
336 """changeid can be a changeset revision, node, or tag.
338 """changeid can be a changeset revision, node, or tag.
General Comments 0
You need to be logged in to leave comments. Login now