Fix possible incompatibility between loginfo-handler script and

cvs 1.12.9. Based on bug report and patch from sourceforge user
"grubert" in issue 151

* bin/loginfo-handler
  (HeuristicArgParse): accept alternate command lines for
    commits of new and imported directories


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1345 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/authz-dev
rey4 2006-04-23 20:38:54 +00:00
parent eb5ccaf906
commit d9777eef27
1 changed files with 4 additions and 2 deletions

View File

@ -78,10 +78,12 @@ def HeuristicArgParse(s, repository):
directory name by choosing the longest possible directory name that actually
exists in the repository"""
if s[-16:] == ' - New directory':
if (s[-16:] == ' - New directory'
or s[:26] == ' - New directory,NONE,NONE'):
return None, None
if s[-19:] == r' - Imported sources':
if (s[-19:] == ' - Imported sources'
or s[-29:] == ' - Imported sources,NONE,NONE'):
return None, None
file_data_list = []