changeset 5968:6dcc190ffc36

graphlog: skip filectx parents in other filelogs
author Steve Borho <steve@borho.org>
date Wed, 30 Jan 2008 10:58:54 -0600
parents f8ad3b76e923
children 821fc5c0656c
files hgext/graphlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/graphlog.py	Fri Dec 21 23:21:17 2007 -0500
+++ b/hgext/graphlog.py	Wed Jan 30 10:58:54 2008 -0600
@@ -98,7 +98,7 @@
         next_revs = revs[:]
 
         # Add parents to next_revs.
-        parents = [f.filerev() for f in fctx.parents()]
+        parents = [f.filerev() for f in fctx.parents() if f.path() == path]
         parents_to_add = []
         for parent in parents:
             if parent not in next_revs: