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

Re: [PATCH] Correct long option parsing in cvs2svn.py

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-10-27 23:49:05 CET

Jon Middleton wrote:

>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:
>
>

Thanks, committed in revision 3516.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Oct 27 23:50:01 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.