hgext/graphlog.py
changeset 5968 6dcc190ffc36
parent 5942 b75105de8573
child 6192 cd65a67aff31
equal deleted inserted replaced
5967:f8ad3b76e923 5968:6dcc190ffc36
    96             revs.append(filerev)
    96             revs.append(filerev)
    97         rev_index = revs.index(filerev)
    97         rev_index = revs.index(filerev)
    98         next_revs = revs[:]
    98         next_revs = revs[:]
    99 
    99 
   100         # Add parents to next_revs.
   100         # Add parents to next_revs.
   101         parents = [f.filerev() for f in fctx.parents()]
   101         parents = [f.filerev() for f in fctx.parents() if f.path() == path]
   102         parents_to_add = []
   102         parents_to_add = []
   103         for parent in parents:
   103         for parent in parents:
   104             if parent not in next_revs:
   104             if parent not in next_revs:
   105                 parents_to_add.append(parent)
   105                 parents_to_add.append(parent)
   106         parents_to_add.sort()
   106         parents_to_add.sort()