Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Display SVN Revision Number

Tags:

asp.net

svn

I see in the Stack Overflow footer that the SVN Revision number is displayed. Is this automated and if so, how does one implement it in ASP.NET?

(Solutions in other languages are acceptable)

like image 260
GateKiller Avatar asked Aug 05 '08 13:08

GateKiller


People also ask

How do I find my SVN revision number?

To find information about the history of a file or directory, use the svn log command. svn log will provide you with a record of who made changes to a file or directory, at what revision it changed, the time and date of that revision, and, if it was provided, the log message that accompanied the commit.

What is SVN revision number?

As you saw in the section called “Revisions”, revision numbers in Subversion are pretty straightforward—integers that keep getting larger as you commit more changes to your versioned data. Still, it doesn't take long before you can no longer remember exactly what happened in each and every revision.

How can I get previous revision from SVN?

By far the easiest way to revert the changes from one or more revisions, is to use the revision log dialog. Select the file or folder in which you need to revert the changes. If you want to revert all changes, this should be the top level folder. Select TortoiseSVN → Show Log to display a list of revisions.


1 Answers

Make sure that the file has svn:keywords "Rev Id" and then put $Rev$ somewhere in there.

See this question and the answers to it.

like image 79
Michael Stum Avatar answered Sep 29 '22 20:09

Michael Stum