##// END OF EJS Templates
changegroup: the node list might be an empty generator (fix issue1678)
Benoit Boissinot -
r8634:7659eecd default
parent child Browse files
Show More
@@ -1150,13 +1150,13 b' class revlog(object):'
1150 1150 changesets. parent is parent[0]
1151 1151 """
1152 1152
1153 revs = [self.rev(n) for n in nodelist]
1154
1153 1155 # if we don't have any revisions touched by these changesets, bail
1154 if not nodelist:
1156 if not revs:
1155 1157 yield changegroup.closechunk()
1156 1158 return
1157 1159
1158 revs = [self.rev(n) for n in nodelist]
1159
1160 1160 # add the parent of the first rev
1161 1161 p = self.parentrevs(revs[0])[0]
1162 1162 revs.insert(0, p)
General Comments 0
You need to be logged in to leave comments. Login now