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

Re: Is merge broken?

From: Ignacy Gawedzki <svn_at_qult.net>
Date: 2005-04-03 16:21:50 CEST

On Sun, Apr 03, 2005 at 08:41:57AM -0500, thus spake Ben Collins-Sussman:
>
> On Apr 3, 2005, at 5:35 AM, Ignacy Gawedzki wrote:
>
> >On Sat, Apr 02, 2005 at 10:04:27PM -0600, thus spake Ben
> >Collins-Sussman:
> >>
> >>On Apr 2, 2005, at 8:34 PM, Ignacy Gawedzki wrote:
> >>
> >>>
> >>> svn merge -r3:5 somebranch trunk
> >>>
> >>
> >>You want to compare the inital and final snapshots of the branch;
> >>you're not doing that. The initial branch state is in r2, not r3.
> >
> >I just tried that and it spits exactly the same error.
> >
>
> What version of svn? Can you send us a script that demonstrates the
> error?

Here is the script :

Script started on Sun Apr 3 16:57:18 2005
ig@zedwan:~ % svn --version
svn, version 1.1.3 (r12730)
   compiled Mar 20 2005, 05:31:14

Copyright (C) 2000-2004 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
  - handles 'http' schema
  - handles 'https' schema
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' schema
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' schema

ig@zedwan:~ % svnadmin create /opt/svn/someproject
ig_at_zedwan:~ % svn co file:///opt/svn/someproject
Checked out revision 0.
ig@zedwan:~ % cd someproject
ig@zedwan:...project % mkdir -p trunk/foo/bar trunk/bar
ig@zedwan:...project % touch trunk/bar/somefile.txt
ig@zedwan:...project % touch trunk/foo/bar/someotherfile.txt
ig@zedwan:...project % svn add trunk
A trunk
A trunk/foo
A trunk/foo/bar
A trunk/foo/bar/someotherfile.txt
A trunk/bar
A trunk/bar/somefile.txt
ig@zedwan:...project % svn ci -m "init import"
Adding trunk
Adding trunk/bar
Adding trunk/bar/somefile.txt
Adding trunk/foo
Adding trunk/foo/bar
Adding trunk/foo/bar/someotherfile.txt
Transmitting file data ..
Committed revision 1.
ig@zedwan:...project % svn cp trunk somebranch
A somebranch
ig@zedwan:...project % svn ci -m "created branch"
Adding somebranch

Committed revision 2.
ig@zedwan:...project % svn rm somebranch/bar/somefile.txt
D somebranch/bar/somefile.txt
ig@zedwan:...project % svn ci -m "deleted somefile.txt"
Deleting somebranch/bar/somefile.txt

Committed revision 3.
ig@zedwan:...project % svn rm somebranch/bar
D somebranch/bar
ig@zedwan:...project % svn ci -m "deleted empty bar"
Deleting somebranch/bar
svn: Commit failed (details follow):
svn: Out of date: '/somebranch/bar' in transaction '4'
ig@zedwan:...project % svn up
At revision 3.
ig@zedwan:...project % svn ci -m "deleted empty bar"
Deleting somebranch/bar

Committed revision 4.
ig@zedwan:...project % svn mv somebranch/foo/bar somebranch
A somebranch/bar
D somebranch/foo/bar/someotherfile.txt
D somebranch/foo/bar
ig@zedwan:...project % svn ci -m "moved foo/bar to /"
Adding somebranch/bar
Deleting somebranch/foo/bar

Committed revision 5.
ig@zedwan:...project % svn up
At revision 5.
ig@zedwan:...project % svn log --verbose --stop-on-copy somebranch
------------------------------------------------------------------------
r5 | ig | 2005-04-03 17:00:18 +0200 (Sun, 03 Apr 2005) | 1 line
Changed paths:
   A /somebranch/bar (from /somebranch/foo/bar:3)
   D /somebranch/foo/bar

moved foo/bar to /
------------------------------------------------------------------------
r4 | ig | 2005-04-03 16:59:41 +0200 (Sun, 03 Apr 2005) | 1 line
Changed paths:
   D /somebranch/bar

deleted empty bar
------------------------------------------------------------------------
r3 | ig | 2005-04-03 16:59:25 +0200 (Sun, 03 Apr 2005) | 1 line
Changed paths:
   D /somebranch/bar/somefile.txt

deleted somefile.txt
------------------------------------------------------------------------
r2 | ig | 2005-04-03 16:59:04 +0200 (Sun, 03 Apr 2005) | 1 line
Changed paths:
   A /somebranch (from /trunk:1)

created branch
------------------------------------------------------------------------
ig@zedwan:...project % svn merge -r2:5 somebranch trunk
D trunk/foo/bar/someotherfile.txt
D trunk/foo/bar
D trunk/bar/somefile.txt
D trunk/bar
svn: URL 'file:///opt/svn/someproject/somebranch/bar' doesn't match existing URL 'file:///opt/svn/someproject/trunk/bar' in 'trunk/bar'
ig@zedwan:...project %

Script done on Sun Apr 3 17:01:12 2005

-- 
Information wants to be beer, or something like that.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Apr 3 16:26:27 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.