User Tools

Site Tools


software:subvesion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:subvesion [2020/02/22 23:06] rodolicosoftware:subvesion [2020/07/10 22:37] (current) rodolico
Line 39: Line 39:
   - check out the project again, but with the url/trunk   - check out the project again, but with the url/trunk
   - Always work in trunk, unless you're working on a branch. tags is for when you want to create a check point.   - Always work in trunk, unless you're working on a branch. tags is for when you want to create a check point.
 +
 +NOTE: one thing I want to try in the future is creating a fourth directory, stable. This will be a copy of the current stable version of the code. See below for more information.
  
 ===== Using the Caret (^) ===== ===== Using the Caret (^) =====
Line 64: Line 66:
 </code> </code>
  
 +===== Moving a repository =====
 +
 +  * [[http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.dump.html]]
 +  * [[http://svnbook.red-bean.com/en/1.7/svn.ref.svnadmin.c.load.html]]
 +
 +
 +On the old machine
 +<code bash>
 +svnadmin dump --deltas reposname | bzip2 -c > /tmp/reposname.svn.dump.bz2
 +</code>
 +
 +On the new machine
 +<code bash>
 +mkdir reposname
 +svnadmin create reposname
 +bunzip2 -c /tmp/resposname.svn.dump.bz2 | svnadmin load resposname
 +</code>
  
 ===== Maintaining a "stable" tag ===== ===== Maintaining a "stable" tag =====
Line 92: Line 111:
 </code> </code>
 The URL listed after the colon can be used as a replacement for the caret above. Don't forget to remove 'trunk' from the end of that, however, since you are currently working in the trunk directory. The URL listed after the colon can be used as a replacement for the caret above. Don't forget to remove 'trunk' from the end of that, however, since you are currently working in the trunk directory.
 +
 +You can now publish your subversion address as
 +**http://svn.example.com/svn/project_name/tags/stable**
 +
 +If you wish, you could also simply create a new subdir on the same level as trunk and tags and do the same thing, I'm guessing (haven't tried it)
  
 ===== Links ===== ===== Links =====
software/subvesion.txt · Last modified: 2020/07/10 22:37 by rodolico