[Svnmerge] Re: [PATCH] Allow multiple 'svnmerge init's in a single revision

Daniel Rall dlr at collab.net
Wed Apr 12 17:13:43 PDT 2006


It looks like this patch was vetted by Giovanni, but I'd like to see a
test case for it, too.

I'd also like to see one for 'init --force'.

- Dan

On Wed, 05 Apr 2006, Madan S. wrote:

> 
> 
> [[[
> Allow multiple 'svnmerge init' commands (with differing copyfrom
> parameters, of course) in a single revision.
> 
> * contrib/client-side/svnmerge.py
>   (check_dir_clean): Modified to error out, only if the change is NOT
>   just another modification of the svnmerge-integrated property.
>   IOW, dont error out, if the only other change in the working copy
>   is an svnmerge-integrated property change.
> ]]]
> 

Content-Description: sm-multiple-init-patch.txt
> Index: contrib/client-side/svnmerge.py
> ===================================================================
> --- contrib/client-side/svnmerge.py	(revision 19182)
> +++ contrib/client-side/svnmerge.py	(working copy)
> @@ -256,7 +256,13 @@
>      # matters: if it's non-empty there is a modification.
>      out = launchsvn("status -q %s" % dir)
>      if out and out[0].strip():
> -        error('"%s" has local modifications; it must be clean' % dir)
> +        # Permit multiple 'svnmerge init's (with differing copyfrom
> +        # parameter) within a single revision.
> +        out = launchsvn("diff %s" % dir)
> +        if not (len(out) <= 7 and \
> +                out[1].find("Property changes on:") != -1 and \
> +                out[3].find("Name: svnmerge-integrated") != -1):
> +           error('"%s" has local modifications; it must be clean' % dir)
>      for L in launchsvn("status -u %s" % dir):
>          if len(L) > 7 and L[7] == '*':
>              error('"%s" is not up to date; please "svn update" first' % dir)

Content-Description: sm-multiple-init-log.txt
> Allow multiple 'svnmerge init' commands (with differing copyfrom
> parameters, of course) in a single revision.
> 
> * contrib/client-side/svnmerge.py
>   (check_dir_clean): Modified to error out, only if the change is NOT
>   just another modification of the svnmerge-integrated property.
>   IOW, dont error out, if the only other change in the working copy
>   is an svnmerge-integrated property change.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : /pipermail/svnmerge/attachments/20060412/0626756c/attachment.pgp 


More information about the Svnmerge mailing list