StackOverflowNewbie
StackOverflowNewbie

Reputation: 40653

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?

Upvotes: 2

Views: 1786

Answers (2)

the_mandrill
the_mandrill

Reputation: 30862

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).

Upvotes: 2

tibur
tibur

Reputation: 11636

Try to launch svn info on the source directory:

svn info path/to/source | grep revision

And:

svn update -r revision

Upvotes: 3

Related Questions