SVN: How to tell revision number?
We have开发者_如何学运维 a web application deployed to a server, which was done via an svn update
. Now, I want to know what revision number was deployed to that server. What command do I use to get this information?
Also, once I get this revision number, I want to deploy that revision to another server. How do I do an svn update
and specify a revision number?
Try to launch svn info on the source directory:
svn info path/to/source | grep revision
And:
svn update -r revision
svnversion
is another option. In addition to showing you the current version of the checkout, it will also tell you whether any files are modified or if you have a mixed revision working copy (ie not all files are at the same revision).
精彩评论