From a3e70a078ad062f63c3ece1ed5de52c66868bf16 Mon Sep 17 00:00:00 2001 From: mhagger Date: Wed, 3 Oct 2012 07:15:16 +0000 Subject: [PATCH] Move definitions of generate_ignores() higher in the file. Define the function before it is referred to. git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5397 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- cvs2svn_lib/svn_dump.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/cvs2svn_lib/svn_dump.py b/cvs2svn_lib/svn_dump.py index 247d5c2b..1f71b68e 100644 --- a/cvs2svn_lib/svn_dump.py +++ b/cvs2svn_lib/svn_dump.py @@ -52,6 +52,18 @@ def utf8_path(path): % (path,)) +def generate_ignores(raw_ignore_val): + ignore_vals = [ ] + for ignore in raw_ignore_val.split(): + # Reset the list if we encounter a '!' + # See http://cvsbook.red-bean.com/cvsbook.html#cvsignore + if ignore == '!': + ignore_vals = [ ] + else: + ignore_vals.append(ignore) + return ignore_vals + + class DumpstreamDelegate(SVNRepositoryDelegate): """Write output in Subversion dumpfile format.""" @@ -402,18 +414,6 @@ class DumpstreamDelegate(SVNRepositoryDelegate): self._dumpfile.close() -def generate_ignores(raw_ignore_val): - ignore_vals = [ ] - for ignore in raw_ignore_val.split(): - # Reset the list if we encounter a '!' - # See http://cvsbook.red-bean.com/cvsbook.html#cvsignore - if ignore == '!': - ignore_vals = [ ] - else: - ignore_vals.append(ignore) - return ignore_vals - - class LoaderPipe(object): """A file-like object that writes to 'svnadmin load'. -- 2.11.4.GIT