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

Re: [Svnmerge] [PATCH] ver2: remove progname hardcoding in svnmerge,py

From: Giovanni Bajo <rasky_at_develer.com>
Date: 2006-03-31 17:50:03 CEST

Madan U S <madan@collab.net> wrote:

> [snip]
>> This will crash Windows users which run the program with
>> "/path/to/svnmerge" (no .py extension),
>
> am not sure why it will crash on windows. I tested this case (only
> 'svnmerge command') on linux, the split function takes care of this.

Ah sorry, you're right, I thinkoed split().
It doesn't handle the case where there are multiple dots in the filename
though. What about os.path.splitext?

>> Python is known for having incompatibilities problem with argv[0] across
>> platforms,
>
> aw! thats bad... but this is the first time am hearing about this...
google
> also doesnt return any results on this...

I meant to say that argv[0] is incompatible across platforms/shells (eg:
sometimes there is an absolute path, sometimes there is a relative path,
sometimes there is just the filename), and Python exposes this difference.
In effect, extracting only the basename should be fine.

So I take back the technical objections, but I still can't see why we would
need this.

-- 
Giovanni Bajo
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 31 17:50:46 2006

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.