Bug 82651 - Remove rest of UTF-8 ugly hacks

git-svn-id: svn://svn.office.custis.ru/3rdparty/viewvc.org/trunk@1396 6955db30-a419-402b-8a0d-67ecbb4d7f56
remotes/github/custis
vfilippov 2011-09-29 15:29:29 +00:00 committed by Vitaliy Filippov
parent ecadbf9fd3
commit 1b75ada880
3 changed files with 4 additions and 2 deletions

View File

@ -337,7 +337,7 @@ class BinCVSRepository(BaseCVSRepository):
% (string.join(path_parts, "/")))
from vclib.ccvs import blame
source = blame.BlameSource(self.rcsfile(path_parts, 1), rev)
source = blame.BlameSource(self.rcsfile(path_parts, 1), rev, self.guesser)
return source, source.revision
def revinfo(self, rev):

View File

@ -451,6 +451,8 @@ class BlameSource:
if self.guesser:
thisline = self.guesser.utf8(self.lines[idx])
else:
thisline = self.lines[idx]
### TODO: Put a real date in here.
item = vclib.Annotation(thisline, line_number, rev, prev_rev, author, None)

View File

@ -158,7 +158,7 @@ class CCVSRepository(BaseCVSRepository):
if self.itemtype(path_parts, rev) != vclib.FILE: # does auth-check
raise vclib.Error("Path '%s' is not a file."
% (string.join(path_parts, "/")))
source = blame.BlameSource(self.rcsfile(path_parts, 1), rev)
source = blame.BlameSource(self.rcsfile(path_parts, 1), rev, self.guesser)
return source, source.revision
def revinfo(self, rev):