You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Robert Zeh <rz...@efs-us.com> on 2005/01/03 22:51:18 UTC

Re: SCCS to Subversion Python script

Max Bowsher wrote:

>
> Argument escaping might be a problem.
> The 1.2 bindings provide svn.core.argv_to_command_string(), which 
> could help out here.
>
> It takes a python list of arguments - e.g. ["sccs", "-p", ... ] - and 
> makes an escaped string which will do the right thing on whichever 
> platform it is running on.
>
> Also, 2>/dev/null isn't very cross-platform. Could it simply be left 
> out? or does sccs spew unwanted stuff on stderr?
>

sccs spews a lot of unwanted stuff on stderr --- which brings me to 
another question.  Isn't SCCS itself rather non cross-platform?  I'm a 
little leary of switching to the 1.2 bindings because I won't be able to 
test it myself --- my debian box is at 1.1.1.

I've made all of the other changes, and I found a few places where the 
user id was hard coded.

Robert


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: SCCS to Subversion Python script

Posted by Robert Zeh <rz...@efs-us.com>.
Here you go:

Max Bowsher wrote:

>
> Excellent! Time to post an updated version here, then.
>
> Max.
>


Re: SCCS to Subversion Python script

Posted by Max Bowsher <ma...@ukf.net>.
Robert Zeh wrote:
> Max Bowsher wrote:
>
>>
>> Argument escaping might be a problem.
>> The 1.2 bindings provide svn.core.argv_to_command_string(), which
>> could help out here.
>>
>> It takes a python list of arguments - e.g. ["sccs", "-p", ... ] - and
>> makes an escaped string which will do the right thing on whichever
>> platform it is running on.
>>
>> Also, 2>/dev/null isn't very cross-platform. Could it simply be left
>> out? or does sccs spew unwanted stuff on stderr?
>>
>
> sccs spews a lot of unwanted stuff on stderr --- which brings me to
> another question.  Isn't SCCS itself rather non cross-platform?

There's a GNU implementation of it, which I imagine can be compiled most 
places. :-)

> I'm a
> little leary of switching to the 1.2 bindings because I won't be able to
> test it myself --- my debian box is at 1.1.1.

Well, you could just grab the bits you need, since they are in the pure 
python part of the bindings...

But, I think the current situation is acceptable, at least for the initial 
revision of a contrib script. I may tidy it up after it's got into the 
subversion repository.

> I've made all of the other changes, and I found a few places where the
> user id was hard coded.

Excellent! Time to post an updated version here, then.

Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org