* 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
remotes/tags/1.0.0-rc1
cmpilato 2005-09-23 19:40:29 +00:00
parent 828ee07077
commit a5ad1e5f41
1 changed files with 3 additions and 2 deletions

View File

@ -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: