[ANN] hgsubversion - patches wanted!

Benoit Boissinot bboissin at gmail.com
Thu Oct 2 07:02:07 CDT 2008


On Thu, Oct 2, 2008 at 1:54 PM, Shun-ichi GOTO <shunichi.goto at gmail.com> wrote:
> 2008/10/1 Augie Fackler <durin42 at gmail.com>:
>> Greetings all! (and apologies for you fellow VC junkies on both of these
>> lists)
>>
>> I'm pleased to announce my work on a Mercurial extension that supports using
>> hg as a Subversion client has borne a fair amount of fruit, and at the
>> prodding of some friends I'm releasing it to the wild.
>>
>> http://www.bitbucket.org/durin42/hgsubversion/
>
> Interesting!
> I need a small fix to run on win32.
> With this patch, I successed svnclone for my one local svn repo
> (but not yet fully checked).
>
> diff -r 89f88df794d3 -r 1f6fb5310711 hg_delta_editor.py
> --- a/hg_delta_editor.py        Tue Sep 30 18:01:35 2008 -0500
> +++ b/hg_delta_editor.py        Thu Oct 02 20:10:48 2008 +0900
> @@ -27,6 +27,8 @@
>     except:
>         raise
>     else:
> +        if os.path.exists(file_path):
> +            os.remove(file_path)
>         os.rename(path, file_path)

just use util.rename instead, it takes care of this.


regards,

Benoit


More information about the Mercurial-devel mailing list