Jason S
Jason S

Reputation: 189906

svn: default name for a tag when name is not important?

I need to tag the current state of my source tree in svn. My problem is I don't care what the name is, I just need to mark the current revision in an immutable* manner. (*subject to malicious behavior)

What's the best way to do this?

branches/
tags/
   ???
trunk/

should ??? be the date, an incrementing sequence, the repository rev # ...?

Upvotes: 0

Views: 79

Answers (2)

Use the revision number, is by definition inmutable. You can use the revision number in the usual svn commands to access the repository in a particular point in time.

For example, to get revision: svn co http://my.svn/project1/trunk@1024

Upvotes: 0

Jamie Ide
Jamie Ide

Reputation: 49301

I would use a combination of date and the svn revision number. Its immutable and will allow you to easily find newer commits. You could also put the date in the tag if desired.

Upvotes: 1

Related Questions