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

[PATCH] Correct long option parsing in cvs2svn.py

From: Jon Middleton <jjm_at_ixtab.org.uk>
Date: 2002-10-27 11:54:01 CET

With python 2.2 the following command line with only exit with the
usage message

        cvs2svn -v --trunk /debian/debian-proxy/trunk \
            --branches /debian/debian-proxy/branches \
            --tags /debian/debian-proxy/tags \
            -s svn cvs/debian/debian-proxy

The following patch adds "=" to the long options so that they will
expect a following argument.

Index: tools/cvs2svn/cvs2svn.py
===================================================================
--- tools/cvs2svn/cvs2svn.py
+++ tools/cvs2svn/cvs2svn.py 2002-10-27 10:49:11.000000000 +0000
@@ -665,7 +665,7 @@
 
   try:
     opts, args = getopt.getopt(sys.argv[1:], 'p:s:vn',
- [ "create", "trunk", "branches", "tags" ])
+ [ "create", "trunk=", "branches=", "tags=" ])
   except getopt.GetoptError:
     usage(ctx)
   if len(args) != 1:

-- 
Jon
"First things first -- but not necessarily in that order"
                -- The Doctor, "Doctor Who"		

  • application/pgp-signature attachment: stored
Received on Sun Oct 27 11:54:53 2002

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.