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

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

From: Daniel Rall <dlr_at_collab.net>
Date: 2006-04-13 02:13:43 CEST

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.

  • application/pgp-signature attachment: stored
Received on Thu Apr 13 02:14:20 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.