I have the following SVN java project structure within a repo:
Artifact folder 1
- branches
- dev
- Project 1
- dev
- branches
Artifact folder 2
- branches
- stable
- branches
I want to copy Project 1 from Artifact folder 1/branches/dev/Project 1 to Artifact folder 2/branches/stable.
I want to copy it in such a manner that I am able to see the diffs in Project 1 since it was branched when I create a crucible review for it from Artifact folder 2/branches/stable. Is this possible?
Currently, I am just copying the project to the new location and when I add the commit it shows up all the files without showing the diffs it would show if I created a review from the original location.
Apologies if this has been answered before, I couldn't find it.
What you're looking for is
svn copy. For clarification purposes, branches and tags are both results ofsvn copy, in which the history is brought along with it.So for your case, what you're going to want to do is a server side copy. So for your particular scenario you would want to use:
svn copy "repo/URL/to/Artifact folder 1/branches/dev/Project 1" "repo/URL/to/Artifact folder 2/branches/stable/Project 1" -m "Enter a log message"Since you manually copied the files to
stable, svn isn't smart enough to know where it originally came from. As far it knows, those files have never been written before in human history. However if you perform an svn copy, that particular revision acts as a pointer to the new location.This is more of a side note, I would try to avoid spacing as much as possible in file structures. Especially on certain OSs such as Linux, where naming conventions are already strict enough as is (you have to use correct capitalization, slashes need to be correct, etc.). It removes the need for excessive quotes in your commands.