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

Re: svn merge --reintegrate and -c -r options

From: Paul Burba <ptburba_at_gmail.com>
Date: Thu, 24 Jan 2008 18:31:55 -0500

On Jan 23, 2008 7:07 PM, David Glasser <glasser_at_davidglasser.net> wrote:
> On Jan 22, 2008 10:23 AM, Paul Burba <pburba_at_collab.net> wrote:
> > Should svn merge --reintegrate produce an error if the user also
> > specifies -c and/or -r? These are allowed but have no meaning AFAICT.
>
> -c, sure.
>
> Now, I'm pretty sure the reintegrate API lets you specify
>
> "reintegrate branch-at-revision-123 into this wc"
>
> ie, it doesn't have to reintegrate HEAD. I'm not sure offhand if this
> should be specified with -r or with a pegrev though.

Dave,

This already works with the URL_at_PEGREV syntax (which I think is the
right choice):

>svn merge file:///C:/SVN/src-branch/Release/subversion/tests/cmdline/svn-test-work/repositories/merge_tests-45/A_COPY_at_8
merge_tests-45\A --reintegrate
--- Merging differences between repository URLs into 'merge_tests-45\A':
 U merge_tests-45\A

It also works with the WC_PATH_at_PEGREV, but requires -r/-c:

>svn merge merge_tests-45\A_COPY_at_8 merge_tests-45\A --reintegrate
..\..\..\subversion\svn\merge-cmd.c:157: (apr_err=195002)
svn: A working copy merge source needs an explicit revision

Which is definitely a bit odd as it doesn't do anything with that
option if you do provide it:

>svn merge merge_tests-45\A_COPY_at_8 merge_tests-45\A --reintegrate
-r2:99999999999999999999999999999999
--- Merging differences between repository URLs into 'merge_tests-45\A':
 U merge_tests-45\A

>svn pl -vR merge_tests-45
Properties on 'merge_tests-45\A':
  svn:mergeinfo : /A_COPY:2-8
Properties on 'merge_tests-45\A_COPY':
  svn:mergeinfo : /A:2-7

So...disallow -r/-c with --reintegrate?

Paul

> --dave
>
>
> --
> David Glasser | glasser@davidglasser.net | http://www.davidglasser.net/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: dev-help_at_subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-01-25 00:32:07 CET

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.