graphlog: skip filectx parents in other filelogs
authorSteve Borho <steve@borho.org>
Wed, 30 Jan 2008 10:58:54 -0600
changeset 5968 6dcc190ffc36
parent 5967 f8ad3b76e923
child 5969 821fc5c0656c
graphlog: skip filectx parents in other filelogs
hgext/graphlog.py
--- 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: