Reputation: 1067
I'd like to merge all the changes that took place between rev 10 & the HEAD rev on http://url-of-branch-a and apply them to http://url-of-branch-b.
Something like...
svn merge -r 10:HEAD http://url-of-branch-a
Is this possible? If so, what is the syntax?
I am running the SVN client from the unix command line. The SVN client version is 1.4
EDIT: Yes, my specific solution was...
This merges the changes from 'branch-a' into 'branch-b'
Upvotes: 98
Views: 95380
Reputation: 1539
The process is as follows:
svn checkout http://branch-b
)svn merge -r 10:HEAD http://branch-a .
)svn commit
)Check the man page (help file) for svn merge semantics. It shows you that svn merge always dumps the results into a working copy.
Check out the SVNBook for all the details.
Upvotes: 129
Reputation: 74551
Mostly confuse merge
by trying to do in svn repo, we can not directly merge to svn repo, we can merge to working copy of local machine as follows:
This working copy should be destination URL
of merge(i.e. checkout destination).
merge working copy with source URL
of merge.
commit
to destination.
Best Practice : Merge In , Merge Out.
Upvotes: 2
Reputation: 106530
Checkout URL A. Use SVN merge to merge URL B to your working copy of A. Commit A.
Or vice versa of course :)
Upvotes: 56