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

Madan U S madan at collab.net
Fri Mar 31 05:10:44 PST 2006


Pl. ignore my previous patch.

My previous patch assumes that svnmerge is called as 'svnmerge command' from the commandline. However, when I use svnmerge, it typically is 'path/to/svnmerge.py command'. The attached patch takes care of all variations of using path with actual .py extension, or just 'svnmerge' from command line.

[[[
Remove hard-coding of program name

* contrib/client-side/svnmerge.py
  (NAME): use sys.argv[0] to obtain the program name,
          instead of hard-coding. Also perform the
          necessary striping required to extract
          *only* the command name.
]]]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/svnmerge/attachments/20060331/e54d80cf/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smdiff
Type: application/octet-stream
Size: 518 bytes
Desc: smdiff
Url : /pipermail/svnmerge/attachments/20060331/e54d80cf/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smlog
Type: application/octet-stream
Size: 245 bytes
Desc: smlog
Url : /pipermail/svnmerge/attachments/20060331/e54d80cf/attachment-0001.obj 


More information about the Svnmerge mailing list