version control - Update SVN branched working copy from trunk -
i have branch trunk out of date. working copy commits , updates branch. simplest way bring either branch or working copy date trunk?
i tried merging trunk branch, , got permission error (i think because don't have permissions necessary commit modify trunk directly) using command:
svn merge [url_to_trunk] [url_to_branch]
to circumvent have been deleting contents of branch , copying trunk on again; inconvenient, i'd know if there's way update working copy trunk url, commit branch.
- you must read svn book basic merging or, @ least,
svn merge
- you do not use merge blindly, without understanding process
- you do not use 2-url merge unless needed
you'd use 1st form of merge, "complete" merge after all:
merge source[@rev] [target_wcpath]
where
source
url of trunktarget_wcpath
local path working copy of branch (clean wc without local modifications, mixed revisions etc.). may omitted if current directory root of wc
after merge (and after resolving possible conflicts in "big bang merge") working copy changed , contain changes trunk, added after divergence of history branch , trunk. in order have state saved, must commit mergeset branch.
Comments
Post a Comment