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-67ecbb4d7f56remotes/github/custis
parent
ecadbf9fd3
commit
1b75ada880
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue