##// END OF EJS Templates
git: avoid looking-up parents for the null commit...
Romain DEP. -
r45362:8bfc6cc8 default
parent child Browse files
Show More
@@ -270,7 +270,10 b' class changelog(baselog):'
270 270 def parentrevs(self, rev):
271 271 n = self.node(rev)
272 272 hn = gitutil.togitnode(n)
273 c = self.gitrepo[hn]
273 if hn != gitutil.nullgit:
274 c = self.gitrepo[hn]
275 else:
276 return nodemod.nullrev, nodemod.nullrev
274 277 p1 = p2 = nodemod.nullrev
275 278 if c.parents:
276 279 p1 = self.rev(c.parents[0].id.raw)
General Comments 0
You need to be logged in to leave comments. Login now