开发者

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. (*subjec开发者_Go百科t to malicious behavior)

What's the best way to do this?

branches/
tags/
   ???
trunk/

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


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜