Getting SVN file version on DOS command

View: New views
4 Messages — Rating Filter:   Alert me  

Getting SVN file version on DOS command

by Ashu Anand :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

Is there any way so that we can get the SVN file version on DOS command? I want to create a batch file which will pick the file based on the file name and version number provided as a parameter.

Do let me know on this as it will save my time in migrating the code to DB.

 

 

 

Thanks,

Aryan

Mobile: - +91 9373634928

We all live under the same Sky, but we all don't have the same Horizon.

 


Re: Getting SVN file version on DOS command

by Simon Large-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/10 Ashu Anand <Ashu_Anand@...>:
> Hi,
>
> Is there any way so that we can get the SVN file version on DOS command? I
> want to create a batch file which will pick the file based on the file name
> and version number provided as a parameter.
>
> Do let me know on this as it will save my time in migrating the code to DB.

You are asking a question about the command line client, so please ask
on the subversion users mailing list. This list is for the TortoiseSVN
Windows GUI client.

Simon

--
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2416152

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].

Re: Getting SVN file version on DOS command

by Ulrich Eckhardt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tuesday 10 November 2009, Ashu Anand wrote:
> Is there any way so that we can get the SVN file version on DOS command?

Simon already told you to take a look at the svn.exe commandline client,
however there is one thing worth mentioning...

> I want to create a batch file which will pick the file based on the
> file name and version number provided as a parameter. Do let me know
> on this as it will save my time in migrating the code to DB.

If you want to refer to a specific version of some code in an SVN repository,
you typically create a so-called tag:
http://svnbook.red-bean.com/en/1.5/svn.branchmerge.tags.html

Doing the same by referring to different revisions of various files obviously
also works (take care though that not the files but the whole repository is
versioned!), but is much more work and less elegant.

Good luck!

Uli


--
ML: http://tortoisesvn.tigris.org/list_etiquette.html
FAQ: http://tortoisesvn.net/faq

Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

**************************************************************************************
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2416254

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].

Re: Getting SVN file version on DOS command

by Stefan Küng :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ulrich Eckhardt wrote:
> On Tuesday 10 November 2009, Ashu Anand wrote:
>> Is there any way so that we can get the SVN file version on DOS command?
>
> Simon already told you to take a look at the svn.exe commandline client,
> however there is one thing worth mentioning...

Or use SubWCRev.exe which comes with TSVN.
Please have a look at the docs on how to use it.

Stefan

--
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2416257

To unsubscribe from this discussion, e-mail: [users-unsubscribe@...].