SVN: Branch and reintegrate is not working with updated server
Asked Answered
P

3

6

I am working with a Subversion server that was recently upgraded to version 1.7. I am using the command-line Linux client 1.7.10.

I created a branch like this:

%: svn copy svn+ssh://acme.com/a/b/c/trunk svn+ssh://acme.com/a/b/c/branches/ovm_sequencer -m "Feature branch for ovm_sequencer"

After a couple of edits, I tried to reintegrate into the trunk and only ran into problems:

%: svn merge --reintegrate '^/c/branches/ovm_sequencer'
svn: E160013: File not found: revision 1677, path '/c/branches/ovm_sequencer'

%: svn merge --reintegrate svn+ssh://acme.com/a/b/c/branches/ovm_sequencer
svn: E200007: Retrieval of mergeinfo unsupported by 'svn+ssh://acme.com/a/b/c/branches/ovm_sequencer'

What has gone wrong and how can it be fixed?

Pinup answered 18/7, 2013 at 10:5 Comment(1)
serverfault.com/questions/125536/…Cilo
C
3

Two notes:

  • ^ in SVN-path means always repository-root, thus ^/c/branches/ovm_sequencer implies "/c/branches/ovm_sequencer" inside repository, while you have (most probably) repository in acme.com/a/b/c path, and URL must be ^/branches/ovm_sequencer

  • "Retrieval of mergeinfo unsupported" means one bad fact about your Network|SVN admin - he doesn't read Release Notes for updated software: in order to have mergeinfo supported on server side except updating software for pre-1.5 Subversion to 1.5 or later, repository also must to be upgraded in order to have new format. Topic (very old - from 2008 year) on Collabnet "mergeinfo not supported"

Cilo answered 18/7, 2013 at 14:20 Comment(1)
The first note was very helpful. My URL was actually ^/b/c/branches/ovm_sequencer. Once I had the syntax right the mergeinfo worked! (I'm not sure if the admin did something else in the meantime.) I suspect SVN wasn't understanding how to parse the two URLs with svn+ssh: as being related.Pinup
O
23

If you are on IntelliJ 13.1 (Build #IU-135.475) and having this problem and your server is not 1.7x yet simply go to your Subversion preferences, presentation tab, un-tick 'Show merge source in history and annotations'.

Oppenheimer answered 21/3, 2014 at 14:50 Comment(1)
1.7 is not necessary. See https://mcmap.net/q/745461/-svn-branch-and-reintegrate-is-not-working-with-updated-server . (Commenting because this answer has the most votes, and I wouldn't want folks jumping through a bunch of unnecessary hoops!)Merkley
C
3

Two notes:

  • ^ in SVN-path means always repository-root, thus ^/c/branches/ovm_sequencer implies "/c/branches/ovm_sequencer" inside repository, while you have (most probably) repository in acme.com/a/b/c path, and URL must be ^/branches/ovm_sequencer

  • "Retrieval of mergeinfo unsupported" means one bad fact about your Network|SVN admin - he doesn't read Release Notes for updated software: in order to have mergeinfo supported on server side except updating software for pre-1.5 Subversion to 1.5 or later, repository also must to be upgraded in order to have new format. Topic (very old - from 2008 year) on Collabnet "mergeinfo not supported"

Cilo answered 18/7, 2013 at 14:20 Comment(1)
The first note was very helpful. My URL was actually ^/b/c/branches/ovm_sequencer. Once I had the syntax right the mergeinfo worked! (I'm not sure if the admin did something else in the meantime.) I suspect SVN wasn't understanding how to parse the two URLs with svn+ssh: as being related.Pinup
K
2

Upgrade remote repository, not personal checkout (take few seconds):

$ svnadmin upgrade REPOS_PATH

If you worry or have no remote access for converting - dump or sync repository copy by:

$ svnsync initialize --username=XXX --password=YYY $MIRROR $MASTER
$ svnsync synchronize $MASTER

or:

 $ svnadmin dump $MASTER  > svn.dump
Kakaaba answered 24/1, 2014 at 13:8 Comment(1)
what should I put instead of REPOS_PATH?Cohdwell

© 2022 - 2024 — McMap. All rights reserved.