From a5ad1e5f41369542fa862dfd4769b059e74149ce Mon Sep 17 00:00:00 2001 From: cmpilato Date: Fri, 23 Sep 2005 19:40:29 +0000 Subject: [PATCH] * viewcvs/lib/blame (link_includes): Use the more generic itemtype() interface instead of the rcsfile() one. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1099 8cb11bc2-c004-0410-86c3-e597b4017df7 --- lib/blame.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/blame.py b/lib/blame.py index 763facdb..5fe356b7 100644 --- a/lib/blame.py +++ b/lib/blame.py @@ -54,8 +54,9 @@ def link_includes(text, repos, path_parts, include_url): for depth in (-1, -2): include_path = path_parts[:depth] + [incfile] try: - repos.rcsfile(include_path) # will throw if path doesn't exist - break + # will throw if path doesn't exist + if repos.itemtype(include_path) == vclib.FILE: + break except vclib.ItemNotFound: pass else: