开发者

Get the tags of a document in Subversion

开发者 https://www.devze.com 2022-12-29 17:47 出处:网络
I was wondering if there is a way to easily see the tags of a specific file in Subversion using the command line and/or TortoiseSVN. 开发者_高级运维

I was wondering if there is a way to easily see the tags of a specific file in Subversion using the command line and/or TortoiseSVN. 开发者_高级运维

Most version control system allow you to see easily access the tags/labels of a file. When using TortoiseSVN I can do this when I access the "Revision Graph". This however is a operation that takes around 44 minutes. I consider this very hard work just to know what tags have been created for the file. Is there another way to do it? Or is there no way to instantaneously access tag information.

Thanks, Onno


A typical SVN layout looks like:

/trunk
/branches
/tags

Typically, all tags are committed to the /tags directory.

If you have a similar implementation, one solution is to:

  1. open the TortoiseSVN Repo Browser
  2. right-click on the "tags" directory and select "Show log"
  3. type in the file you're interested in inside the search box at the top of the screen

At this point the Log will show you all tags that contain that file.

0

精彩评论

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