Fix Bug 1271136: Query results wrong for directories with similar
names * viewcvs/lib/viewcvs.py (view_query): Use "exact" matches for the query directory, instead of "like" ones. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1105 8cb11bc2-c004-0410-86c3-e597b4017df7remotes/tags/1.0.0-rc1
parent
1b967b1a09
commit
577728db86
|
@ -3063,10 +3063,10 @@ def view_query(request):
|
|||
if dir:
|
||||
for subdir in string.split(dir, ','):
|
||||
path = _path_join(request.path_parts + [ string.strip(subdir) ])
|
||||
query.SetDirectory('%s%%' % cvsdb.EscapeLike(path), 'like')
|
||||
query.SetDirectory(path, 'exact')
|
||||
else:
|
||||
if request.path_parts: # if we are in a subdirectory ...
|
||||
query.SetDirectory('%s%%' % cvsdb.EscapeLike(request.where), 'like')
|
||||
query.SetDirectory(request.where, 'exact')
|
||||
if file:
|
||||
query.SetFile(file, file_match)
|
||||
if who:
|
||||
|
|
Loading…
Reference in New Issue