You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by cm...@apache.org on 2011/07/21 20:50:34 UTC
svn commit: r1149312 -
/subversion/trunk/tools/server-side/svnpredumpfilter.py
Author: cmpilato
Date: Thu Jul 21 18:50:33 2011
New Revision: 1149312
URL: http://svn.apache.org/viewvc?rev=1149312&view=rev
Log:
* tools/server-side/svnpredumpfilter.py
(analyze_logs): Only warn about the need to create parent
directories where there are parent directories to suggest.
Modified:
subversion/trunk/tools/server-side/svnpredumpfilter.py
Modified: subversion/trunk/tools/server-side/svnpredumpfilter.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/server-side/svnpredumpfilter.py?rev=1149312&r1=1149311&r2=1149312&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/svnpredumpfilter.py (original)
+++ subversion/trunk/tools/server-side/svnpredumpfilter.py Thu Jul 21 18:50:33 2011
@@ -225,9 +225,7 @@ def analyze_logs(included_paths):
print " /%s" % (path)
print "You need to also include them (or one of their parents)."
else:
- print "No new dependencies found! You might still need " \
- "to manually create parent directories for the " \
- "included paths before loading a filtered dump:"
+ print "No new dependencies found!"
parents = {}
for path in dt.include_paths:
while 1:
@@ -237,9 +235,12 @@ def analyze_logs(included_paths):
parents[parent] = 1
path = parent
parents = parents.keys()
- parents.sort(compare_paths)
- for parent in parents:
- print " /%s" % (parent)
+ if parents:
+ print "You might still need to manually create parent directories " \
+ "for the included paths before loading a filtered dump:"
+ parents.sort(compare_paths)
+ for parent in parents:
+ print " /%s" % (parent)
def usage_and_exit(errmsg=None):
program = os.path.basename(sys.argv[0])