comparison mercurial/graphmod.py @ 35546:5e1d4ccab455

graphlog: remove redundant check for empty revs
author Yuya Nishihara <yuya@tcha.org>
date Sun, 22 Oct 2017 22:52:36 +0900
parents 6f6c87888b22
children 34e850440271
comparison
equal deleted inserted replaced
35545:349bcd7fa670 35546:5e1d4ccab455
46 is one of PARENT, GRANDPARENT or MISSINGPARENT. The node and parent ids 46 is one of PARENT, GRANDPARENT or MISSINGPARENT. The node and parent ids
47 are arbitrary integers which identify a node in the context of the graph 47 are arbitrary integers which identify a node in the context of the graph
48 returned. 48 returned.
49 49
50 """ 50 """
51 if not revs:
52 return
53
54 gpcache = {} 51 gpcache = {}
55 52
56 for rev in revs: 53 for rev in revs:
57 ctx = repo[rev] 54 ctx = repo[rev]
58 # partition into parents in the rev set and missing parents, then 55 # partition into parents in the rev set and missing parents, then