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

Re: svn commit: rev 7729 - trunk/tools/cvs2svn

From: Lele Gaifax <lele_at_nautilus.homeip.net>
Date: 2003-11-14 15:29:32 CET

Thanx a lot! I notice that while the help talks about a --dumpfile
option, it is not recognized by the script. It took a while, and two
messages on stderr, to understand *which* option confused it :)

ciao, lele.

So for the patch:

Recognize the option --dumpfile, as stated by the usage help. Also,
added two messages on stderr when there is something wrong with the
options, to clarify the reason the command printed usage and exited.

Index: cvs2svn.py
--- cvs2svn.py (revision 7741)
+++ cvs2svn.py (working copy)
@@ -2191,10 +2191,13 @@
                                [ "create", "trunk=",
                                  "branches=", "tags=", "encoding=",
- "trunk-only", "no-prune", "dump-only"])
- except getopt.GetoptError:
+ "trunk-only", "no-prune",
+ "dump-only", "dumpfile="])
+ except getopt.GetoptError, e:
+ sys.stderr.write(str(e)+'\n')
   if len(args) != 1:
+ sys.stderr.write("Error: must pass one final CVS repository.\n")
   ctx.cvsroot = args[0]

nickname: Lele Gaifax	| Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas	| comincerò ad aver paura di chi mi copia.
email: lele@seldati.it	|		-- Fortunato Depero, 1929.
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 14 15:30:07 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.