You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by David Summers da...@summersoft.fay.ar.us on 2003/01/22 18:25:05 UTC
More cvs2svn broken in 0.17.0?
After looking at the previous cvs2svn error I got the bright idea to work
around it by svnadmin create svnroot and then running the cvs2svn on the
newly manually created svn repository. That was going great until:
----- pass 4 -----
committing: Fri Jan 11 22:13:02 2002, over 0 seconds
changing 1.1 : /trunk/src/aclocal.m4
making dir: /trunk
making dir: /trunk/src
Traceback (most recent call last):
File /usr/bin/cvs2svn, line 696, in ?
main()
File /usr/bin/cvs2svn, line 693, in main
util.run_app(convert, ctx, start_pass=start_pass)
File
/home/dsummers/rpms/tmp/subversion-0.17.0-4468/usr/lib/python2.2/site-packages/svn/util.py,
line 38, in run_app
File /usr/bin/cvs2svn, line 626, in convert
_passes[i](ctx)
File /usr/bin/cvs2svn, line 583, in pass4
c.commit(t_fs, ctx)
File /usr/bin/cvs2svn, line 366, in commit
handler, baton = fs.apply_textdelta(root, repos_path, f_pool)
TypeError: svn_fs_apply_textdelta() takes exactly 5 arguments (3 given)
Thanks for taking a look at it!
--
David Wayne Summers Linux: Because reboots are for hardware upgrades!
david@summersoft.fay.ar.us PGP Key: http://summersoft.fay.ar.us/~david/pgp.txt
PGP Key fingerprint = C0 E0 4F 50 DD A9 B6 2B 60 A1 31 7E D2 28 6D A8
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: More cvs2svn broken in 0.17.0?
Posted by Daniel Berlin db...@dberlin.org.
On Thursday, January 23, 2003, at 12:29 PM, cmpilato@collab.net wrote:
Edward S. Marshall esm@logic.net writes:
(warning, half-baked idea follows)
Although, this does give me an interesting idea; a lot of functions
have
optional arguments (optional in the sense that the argument is NULL if
there's nothing to be passed). Is there any way that this could be
mapped
to python's optional argument syntax (ie. foo(arg1, arg2=None)) in a
semi-automated manner?
Regarding the above: I don't think so.
Um, it specifically supports it:
4.4.8 Default/optional arguments
SWIG supports default arguments in both C and C++ code. For example:
int plot(double x, double y, int color=WHITE);
In this case, SWIG generates wrapper code where the default arguments
are optional in the target language. For example, this function could
be used in Tcl as follows :
% plot -3.4 7.5 # Use default value
% plot -3.4 7.5 10 # set color to 10
instead
Although the ANSI C standard does not allow default arguments,
default arguments specified in a SWIG interface work with both C and
C++.
Note: There is a subtle semantic issue concerning the use of default
arguments and the SWIG generated wrapper code. When default arguments
are used, the default values are emitted into the wrappers and the
function is invoked with a full set of arguments. This behavior is not
100% compatible with all uses of default arguments in C++. Please
refer to the C++ chapter for further details.
In other words, you just need to move the functions you want default
arguments for into an interface file, and specify the defaults there.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: More cvs2svn broken in 0.17.0?
Posted by cm...@collab.net.
Edward S. Marshall esm@logic.net writes:
(warning, half-baked idea follows)
Although, this does give me an interesting idea; a lot of functions have
optional arguments (optional in the sense that the argument is NULL if
there's nothing to be passed). Is there any way that this could be mapped
to python's optional argument syntax (ie. foo(arg1, arg2=None)) in a
semi-automated manner?
Regarding the above: I don't think so.
(Maybe this would be better done in fs.py, to compliment the svn_fs_
stripping done for everything exported by _fs? And mimic'd where needed
in other modules? If this approach was taken, it's probably an effort
best left until svn is a little closer to 1.0...)
Regarding the above: I think so.
:-)
We're going to have to whip the module wrappers into shape soon. I've
been avoiding the issue for as long as possible because it means the
Subversion team itself has to doubly maintain all of our APIs, instead
of the current scenario where if the bindings change, we only have to
change the tools that we provide and that use those particular APIs of
the bindings.
But as 1.0 seems a distant and nebulous thing, perhaps it's time to
just dive in and get those .py files looking beautiful.
Any volunteers? I'd be glad to offer feedback on interface decisions,
and I'm sure Greg Stein would be more than happy to guide us toward
the light on this.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: More cvs2svn broken in 0.17.0?
Posted by Edward S.Marshall es...@logic.net.
On Wed, Jan 22, 2003 at 05:27:16PM -0800, Greg Stein wrote:
This has nothing to do with SWIG. The bindings *are* up to date, and those
bindings are asking for more arguments.
(warning, half-baked idea follows)
Although, this does give me an interesting idea; a lot of functions have
optional arguments (optional in the sense that the argument is NULL if
there's nothing to be passed). Is there any way that this could be mapped
to python's optional argument syntax (ie. foo(arg1, arg2=None)) in a
semi-automated manner? (I can't think of one off the top of my head that
would work right for all cases, but there are far SWIGgier folks than me
on this list. ;-)
Thus, the current syntax used by cvs2svn would actually be legal. ;-)
(Maybe this would be better done in fs.py, to compliment the svn_fs_
stripping done for everything exported by _fs? And mimic'd where needed
in other modules? If this approach was taken, it's probably an effort
best left until svn is a little closer to 1.0...)
--
Edward S. Marshall esm@logic.net
http://esm.logic.net/
Felix qui potuit rerum cognoscere causas.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: More cvs2svn broken in 0.17.0?
Posted by Greg Stein gs...@lyra.org.
On Wed, Jan 22, 2003 at 12:26:24PM -0600, Ben Collins-Sussman wrote:
David Summers david@summersoft.fay.ar.us writes:
handler, baton = fs.apply_textdelta(root, repos_path, f_pool)
TypeError: svn_fs_apply_textdelta() takes exactly 5 arguments (3 given)
Right. svn_fs_apply_textdelta() grew two new arguments. So did
apply_textdelta() in every single editor. This probably means a the
swig bindings have a bunch of catching up to do. I'll leave it to
someone who knows swig...
This has nothing to do with SWIG. The bindings *are* up to date, and those
bindings are asking for more arguments.
That's the beauty of SWIG. We typically don't have to change anything to
have it pick up changes in our API.
In this case, the application (cvs2svn) needs to be fixed.
Cheers,
-g
--
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: More cvs2svn broken in 0.17.0?
Posted by Ben Collins-Sussman su...@collab.net.
David Summers david@summersoft.fay.ar.us writes:
handler, baton = fs.apply_textdelta(root, repos_path, f_pool)
TypeError: svn_fs_apply_textdelta() takes exactly 5 arguments (3 given)
Right. svn_fs_apply_textdelta() grew two new arguments. So did
apply_textdelta() in every single editor. This probably means a the
swig bindings have a bunch of catching up to do. I'll leave it to
someone who knows swig...
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org