You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Bryan D. Andrews" <ba...@trendcore.com> on 2006/09/11 05:22:46 UTC

Revision Number on assembly info

I am trying to come up with a way to have our revision number and our
revision on our assemblyinfo.

I have found a few posts on getting the head revision, but I am unclear
if anyone is doing it this way: 

I want to commit and as I am committing write the revision number to the
assemblyinfo just before it commits so our entire team has a build
associated with the revision clearly.

Thanks for any thoughts.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Revision Number on assembly info

Posted by Erik Huelsmann <eh...@gmail.com>.
On 9/11/06, Bryan D. Andrews <ba...@trendcore.com> wrote:
> I am trying to come up with a way to have our revision number and our
> revision on our assemblyinfo.
>
> I have found a few posts on getting the head revision, but I am unclear
> if anyone is doing it this way:
>
> I want to commit and as I am committing write the revision number to the
> assemblyinfo just before it commits so our entire team has a build
> associated with the revision clearly.
>
> Thanks for any thoughts.

I think you should read:

http://subversion.tigris.org/faq.html#version-value-in-source

and

http://svnbook.red-bean.com/nightly/en/svn.basic.in-action.html#svn.basic.in-action.mixedrevs

What you'll learn from the above is that there generally is no single
revision number your working copy is at: it'll be a mix of  revisions.

The other thing is there is no way to substitute the revision number
at commit time: the number is simply unknown until the commit has been
finalized (server-side). At that time, the committed data has become
immutable.

I hope I haven't only added confusion...

bye,


Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Revision Number on assembly info

Posted by Grant Rettke <gr...@acm.org>.
Quoting "Bryan D. Andrews" <ba...@trendcore.com>:

> I am trying to come up with a way to have our revision number and our
> revision on our assemblyinfo.
>
> I have found a few posts on getting the head revision, but I am unclear
> if anyone is doing it this way:
>
> I want to commit and as I am committing write the revision number to the
> assemblyinfo just before it commits so our entire team has a build
> associated with the revision clearly.

Hi Bryan,

I am pretty sure I understand what you want to accomplish. I wanted to do
the same thing. You are going about it the wrong way. Here is the right way.

1. Do you development work (for example) in trunk. When you are ready 
to "version" your software, set the version number of your assembly in 
the assemblyinfo file. Now, when you are happy, make your final commit 
to trunk. *Note* the revision number of that final commit; it is very 
important.
2. At this point, revision X of trunk lines up with the version you 
defined in the assembly info.
3. Make a tag of your trunk, and you *must* make the tag for that 
particular revision to ensure that you are getting what you expect. 4. 
At this point, folks that want to use V1.0.1 of your assembly will 
either checkout or export tag V1.0.1 of that library when they want to 
use it.

What that helpful?

If you want to talk to me more about it off the list I would be happy 
to. We manage versioning of about 50 .NET dlls using Subversion right 
now. I would be happy to talk to someone else about it!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Revision Number on assembly info

Posted by Arild Fines <ar...@broadpark.no>.

> -----Original Message-----
> From: Bryan D. Andrews [mailto:bandrews@trendcore.com]
> Sent: Monday, September 11, 2006 7:23 AM
> To: users@subversion.tigris.org
> Subject: Revision Number on assembly info
> 
> I am trying to come up with a way to have our revision number and our
> revision on our assemblyinfo.
> 
> I have found a few posts on getting the head revision, but I am unclear
> if anyone is doing it this way:
> 
> I want to commit and as I am committing write the revision number to
> the assemblyinfo just before it commits so our entire team has a build
> associated with the revision clearly.

See the create_assemblyinfo() function in this script:
http://ankhsvn.com/svn/finalproject/trunk/deploy.py

--
Arild

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org