Remove workaround for CVSNT bug 188, which was fixed in version 2.0.12
* lib/vclib/bincvs/__init__.py: (_get_logs): simplify filename checking (_path_ends_in): removed git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@859 8cb11bc2-c004-0410-86c3-e597b4017df7remotes/tags/1.0.0-rc1
parent
ea73dfb7a3
commit
8b85373685
|
@ -791,10 +791,7 @@ def _get_logs(repos, dirpath, entries, view_tag, get_dirs):
|
|||
raise vclib.Error('Rlog output ended early. Expected RCS file "%s"'
|
||||
% file.path)
|
||||
|
||||
# check _path_ends_in instead of file.path == filename because of
|
||||
# cvsnt's rlog, which only outputs the base filename
|
||||
# http://www.cvsnt.org/cgi-bin/bugzilla/show_bug.cgi?id=188
|
||||
if not (filename and _path_ends_in(file.path, filename)):
|
||||
if not (filename and file.path == filename):
|
||||
raise vclib.Error('Error parsing rlog output. Expected RCS file "%s"'
|
||||
', found "%s"' % (file.path, filename))
|
||||
|
||||
|
@ -1001,11 +998,3 @@ def _newest_file(dirpath):
|
|||
newest_time = info[stat.ST_MTIME]
|
||||
|
||||
return newest_file
|
||||
|
||||
def _path_ends_in(path, ending):
|
||||
if path == ending:
|
||||
return 1
|
||||
le = len(ending)
|
||||
if le >= len(path):
|
||||
return 0
|
||||
return path[-le:] == ending and path[-le-1] == os.sep
|
||||
|
|
Loading…
Reference in New Issue