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
Next revisionBoth sides next revision
software:subvesion [2019/12/07 14:08] rodolicosoftware:subvesion [2019/12/07 15:18] rodolico
Line 40: Line 40:
   - 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.
  
-===== Creating a "stable" tag =====+===== Creating a tag ===== 
 +<code bash> 
 +svn copy http://svn.example.com/project/trunk  http://svn.example.com/project/tags/1.0 -m "Release 1.0" 
 +</code> 
 +OR 
 +<code bash> 
 +cd /path/to/project 
 +svn copy ^/trunk ^/tags/1.0 -m "Release 1.0" 
 +</code> 
 + 
 + 
 +===== Maintaining a "stable" tag =====
  
 I've always been intrigued with people who use subversion with a tag that always points to the most recent stable version. Never figured out how they do it, but thanks to one of my associates, came up with this simple action when a new version has become your most recent stable version</. I've always been intrigued with people who use subversion with a tag that always points to the most recent stable version. Never figured out how they do it, but thanks to one of my associates, came up with this simple action when a new version has become your most recent stable version</.
Line 46: Line 57:
   - Delete the old stable tag if it exists. Be sure and use recursion.   - Delete the old stable tag if it exists. Be sure and use recursion.
   - recreate the stable tag from the new version   - recreate the stable tag from the new version
- 
-the URL listed below is one of our projects 
  
 <code bash> <code bash>
 svn ls -v ^/tags svn ls -v ^/tags
-svn delete http://svn.dailydata.net/svn/camp_sysinfo_client_3/tags/stable -m "Changing latest stable version" +svn delete http://svn.example.com/project/tags/stable -m "Changing latest stable version" 
-svn copy http://svn.dailydata.net/svn/camp_sysinfo_client_3/tags/v1.0 http://svn.dailydata.net/svn/camp_sysinfo_client_3/tags/stable -m "Making v1.0 the most recent stable copy"+svn copy http://svn.example.com/project/tags/v1.0 http://svn.example.com/project/tags/stable -m "Making v1.0 the most recent stable copy"
 </code> </code>
  
 Unfortunately, I did not record the exact steps when I did this the last time, so this is pretty bogus. However, I'll be doing it again in the near future and will update this then. **Do Not blindly follow this.** It is some notes for me so I'll try to remember the next time I have to do it. Unfortunately, I did not record the exact steps when I did this the last time, so this is pretty bogus. However, I'll be doing it again in the near future and will update this then. **Do Not blindly follow this.** It is some notes for me so I'll try to remember the next time I have to do it.
 +
 +===== Links =====
 +  * [[https://stackoverflow.com/questions/851377/how-to-properly-create-an-svn-tag-from-trunk]]
 +  * [[http://svnbook.red-bean.com/nightly/en/svn.branchmerge.tags.html]]
  
software/subvesion.txt · Last modified: 2020/07/10 22:37 by rodolico