Subversion “label” like SourceSafe

前端 未结 8 1894
野趣味
野趣味 2021-01-04 01:15

Is there a way to do something similar to a SourceSafe label in svn? I know of the bransch/tag, but I would like to have a more lightweight way of just setting a name for a

8条回答
  •  -上瘾入骨i
    2021-01-04 01:35

    If you don't want to use tag branches then you can use the revision number.

    As SVN increments the revnum so that each checkin is unique, each revnum becomes a snapshot of the entire repo at a given time. So, if you know that you checked in 'tag 1.0' and it was assigned revnum 232, then you can reproduce that checkin (ie get all the files from that 'label') by checking out revision 232. It is as simple as that.

    However, there is no facility in SVN to associate human-readable text with a revision number, so you'll have to keep track of them yourself (or find a softare package that does this for you).

提交回复
热议问题