Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: SVN Client SDK?

Project highlights: :. Download .: :. Support .: :. FAQ .: :. Translations .: :. Donate .: :. Report Bug .:

tortoisesvn
Discussion topic

Hide all messages in topic

All messages in topic

Re: SVN Client SDK?

Author simonlarge
Full name Simon Large
Date 2011-05-30 08:27:45 PDT
Message On 30 May 2011 11:26, Ulrich Eckhardt <ulrich.eckhardt@​dominolaser.com> wrote:
> On Monday 30 May 2011, you wrote:
>> I am using Tortoise SVN client, windows version, I want to attach the SVN
>> revision number on the File version of binaries (dll/exe) before building
>> the Visual Studio projects, now i am manually doing this. is there any way
>> to automate this using SVN SDK? please provide the link.
>
>
> If you need an API to use Subversion, I'd rather look at the various language
> bindings that Subversion provides. Note that I meant Subversion, not
> TortoiseSVN!
>
> That said, you could e.g. use keyword replacement to get at some repository
> information. Those also work for resource files which you can use to embed
> version information into DLLs and EXEs.
>
> One thing though: If you change one an unrelated file in a different project,
> the repository's version number is bumped. Typically, the advise is to not use
> the revision number for anything but in order to refer to a specific revision
> inside the repository, i.e. treat it as a Subversion-internal artifact.
> Instead, use your own versioning schema and create according tags with
> meaningful names.
>
> Lastly, if you really want some Subversion revision, as volatile as it is, you
> can use the "svnversion" program. However, read the warnings, because it is
> possible that that program doesn't give you a version number, e.g. if the
> working copy is modified.
>
> Good luck!
>
> Uli

You could also look at SubWCRev as a means of putting the WC's highest
commit revision into an include file. This is what we do for
TortoiseSVN itself.

Simon

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

Re: SVN Client SDK?

Author Ulrich Eckhardt <ulrich dot eckhardt at dominolaser dot com>
Full name Ulrich Eckhardt <ulrich dot eckhardt at dominolaser dot com>
Date 2011-05-30 03:22:43 PDT
Message On Monday 30 May 2011, you wrote:
> I am using Tortoise SVN client, windows version, I want to attach the SVN
> revision number on the File version of binaries (dll/exe) before building
> the Visual Studio projects, now i am manually doing this. is there any way
> to automate this using SVN SDK? please provide the link.


If you need an API to use Subversion, I'd rather look at the various language
bindings that Subversion provides. Note that I meant Subversion, not
TortoiseSVN!

That said, you could e.g. use keyword replacement to get at some repository
information. Those also work for resource files which you can use to embed
version information into DLLs and EXEs.

One thing though: If you change one an unrelated file in a different project,
the repository's version number is bumped. Typically, the advise is to not use
the revision number for anything but in order to refer to a specific revision
inside the repository, i.e. treat it as a Subversion-internal artifact.
Instead, use your own versioning schema and create according tags with
meaningful names.

Lastly, if you really want some Subversion revision, as volatile as it is, you
can use the "svnversion" program. However, read the warnings, because it is
possible that that program doesn't give you a version number, e.g. if the
working copy is modified.

Good luck!

Uli
********************​********************​********************​********************​******
Domino 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.dominolaser.com
********************​********************​********************​********************​******
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. Domino Laser GmbH ist f�r diese Folgen nicht verantwortlich.
********************​********************​********************​********************​******

SVN Client SDK?

Author Thodukayil Mathew Jais <thodukotron at gmail dot com>
Full name Thodukayil Mathew Jais <thodukotron at gmail dot com>
Date 2011-05-30 02:58:23 PDT
Message Hi,

I am using Tortoise SVN client, windows version, I want to attach the SVN
revision number on the File version of binaries (dll/exe) before building
the Visual Studio projects, now i am manually doing this. is there any way
to automate this using SVN SDK? please provide the link.

Thanks
Jais
Attachments
Messages per page: