[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] [cvs2svn] One-liner fixes

From: maxbowsher <maxbowsher_at_btopenworld.com>
Date: 2003-08-16 18:37:09 CEST

One-liner fixes

* tools/cvs2svn/cvs2svn.py: Don't "import shutil", because it not used.
  (RepositoryMirror.change_path): Remove assignment to unused variable.
  (RepositoryMirror.delete_path): Correct "exit" to "sys.exit".

--- cvs2svn.py 2003-08-15 19:39:09.000000000 +0100
+++ cvs2svn.py.fullmod 2003-08-14 23:45:31.000000000 +0100
@@ -16,7 +16,6 @@ import string
 import getopt
 import stat
 import md5
-import shutil
 import anydbm
 import marshal

@@ -685,7 +684,6 @@ class RepositoryMirror:
     self.nodes_db[parent_key] = marshal.dumps(parent)
     self.symroots_db[path] = marshal.dumps((tags, branches))
     new_val[self.mutable_flag] = 1
- s = marshal.dumps(new_val)
     self.nodes_db[leaf_key] = marshal.dumps(new_val)

     if expected_entries:
@@ -834,7 +832,7 @@ class RepositoryMirror:
     if pruned_count > len(components):
       sys.stderr.write("Error: deleting '%s' tried to prune %d
components.\n"
                        % (path, pruned_count))
- exit(1)
+ sys.exit(1)

     if pruned_count:
       if pruned_count == len(components):

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 16 18:41:14 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.