[Svnmerge] Bugs when merging revisions that modify and deletefiles

Giovanni Bajo rasky at develer.com
Wed Jan 10 08:05:21 PST 2007


On 12/18/2006 9:55 AM, Tilmann Singer wrote:

>> I've run into this problem a number of times now and ended up with bad
>> merges (the "skipping" message is quite easy to overlook in large
>> merges). In the thread in February there was talk about adding --force
>> to the svn commandline, but then the thread just stops.
> 
> Attached is a patch that adds the --force option to svnmerge.py. I
> don't know if it still applies - I was using a svnmerge.py version
> from 2006-09-22.

> ------------------------------------------------------------------------
> 
> --- client-side/svnmerge.py	2006-12-18 09:50:13.000000000 +0100
> +++ scripts/admin/svnmerge.py	2006-11-24 21:24:05.000000000 +0100
> @@ -1163,7 +1176,7 @@
>  
>          if not record_only:
>              # Do the merge
> -            svn_command("merge -r %d:%d %s %s" % \
> +            svn_command("merge --force -r %d:%d %s %s" % \
>                          (start - 1, end, opts["head-url"], branch_dir))
>  
>      # Write out commit message if desired
> 
> 
> ------------------------------------------------------------------------

+1. This saved my day as well. If you write up a decent commit message 
for this, I'm happy to commit it.
-- 
Giovanni Bajo




More information about the Svnmerge mailing list