From d9777eef27c0357a383506eff525cc3a24e110a7 Mon Sep 17 00:00:00 2001 From: rey4 Date: Sun, 23 Apr 2006 20:38:54 +0000 Subject: [PATCH] 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 --- bin/loginfo-handler | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/loginfo-handler b/bin/loginfo-handler index 3dfad38e..a7ed75a5 100755 --- a/bin/loginfo-handler +++ b/bin/loginfo-handler @@ -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 = []