[PATCH 3 of 4] verify-cvs2svn: change --tempdir option to --tmpdir (for consistency)

Greg Ward <[email protected]>
Newsgroups gmane.comp.version-control.subversion.cvs2svn.devel
Message-ID <40b57caea9462893431a.1250643309@davros>
Patch subject is complete summary.

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1667&dsMessageId=2385055

To unsubscribe from this discussion, e-mail: [[email protected]].
verify-rename-tmpdir.patch (text/x-patch, 2 KB)
# HG changeset patch
# User Greg Ward <[email protected]>
# Date 1249496407 14400
# Node ID 40b57caea9462893431a33258c6424ea265492a4
# Parent  54ea2724fd19648bb1ad68377e564372a7a73818
verify-cvs2svn: change --tempdir option to --tmpdir (for consistency)

diff --git a/contrib/verify-cvs2svn.py b/contrib/verify-cvs2svn.py
--- a/contrib/verify-cvs2svn.py
+++ b/contrib/verify-cvs2svn.py
@@ -359,15 +359,15 @@
   the CVS repository CVSREPOS.  KIND can be either 'trunk', 'tag' or
   'branch'.  If KIND is either 'tag' or 'branch', LABEL is used to
   specify the name of the tag or branch.  CTX has the attributes:
-  CTX.tempdir: specifying the directory for all temporary files.
+  CTX.tmpdir: specifying the directory for all temporary files.
   CTX.skip_cleanup: if true, the temporary files are not deleted.
   CTX.run_diff: if true, run diff on differing files.
   """
   itemname = kind + (kind != 'trunk' and '-' + label or '')
   cvs_export_dir = os.path.join(
-    ctx.tempdir, 'cvs-export-%s' % itemname)
+    ctx.tmpdir, 'cvs-export-%s' % itemname)
   vrf_export_dir = os.path.join(
-    ctx.tempdir, '%s-export-%s' % (verifyrepos.name, itemname))
+    ctx.tmpdir, '%s-export-%s' % (verifyrepos.name, itemname))
 
   if label:
     cvslabel = transform_symbol(ctx, label)
@@ -451,7 +451,7 @@
                     help='run diff on differing files')
   parser.add_option('--tag',
                     help='verify contents of the tag TAG only')
-  parser.add_option('--tempdir',
+  parser.add_option('--tmpdir',
                     metavar='PATH',
                     help='path to store temporary files')
   parser.add_option('--trunk', action='store_true',
@@ -471,7 +471,7 @@
                     help='assume verify-repos is git (not implemented!)')
 
   parser.set_defaults(run_diff=False,
-                      tempdir='',
+                      tmpdir='',
                       skip_cleanup=False,
                       symbol_transforms=[],
                       repos_type='svn')
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.