[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Version numbers in the sources

From: <leif.eriksen_at_hpa.com.au>
Date: 2002-12-17 22:43:06 CET

One of the most useful reasons for $Id$ and its variants is to try and
really keep track of what is in production versus development, via
'strings', 'what' etc. We generally provide a --modules arg to our
production products, which dumps all the $Id$ strings that the binary in
question was built with. This gives us some assurance that the code we think
it was built with is the version in production. The use of symbolic tags
really helps here too.

So if a similiar feature was in svnlook or other tool, an 'svnlook
--versions' or such would dump all the version strings embedded as per
Peter's request.

Of course it all falls down when someone checks out a version, changes it,
builds it, deploys it and THEN checks in. But that is what the big stick is
there for - re-education!

Leif Eriksen
Developer
HPA - IT Development
+61 3 9217 5545
leif.eriksen@hpa.com.au

-----Original Message-----
From: Nuutti Kotivuori [mailto:naked@iki.fi]
Sent: Wednesday, December 18, 2002 7:42 AM
To: Peter Gervai
Cc: Subversion Dev List
Subject: Re: Version numbers in the sources

Peter Gervai wrote:
> I installed 'subversion' debian package (a binary distribution),
> which contains the file 'commit-access-control.pl'. It have no .svn/
> so no revision history. (naturally, since binary distros don't
> include "fluff".) I edited the file (some weeks ago), and now I
> wanted to check whether there's a newer version in trunk or
> not.

I understand that you are asking for something a bit more general -
but for what it's worth:

The debian package has a version, be it 0.15 or 0.16. You can see from
the CHANGES file that which revision is this - for 0.15 it's 3687, for
0.16 it's 3987.

So, then you know what revision your commit-access-control.pl is (the
one you started out with). And then it's a trivial job of doing:

  svn diff -r 3987:HEAD
http://svn.collab.net/repos/trunk/tools/hook-scripts/commit-access-control.p
l

to find out the differences. Same for log messages ofcourse.

-- Naked

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

**********************************************************************
IMPORTANT
The contents of this e-mail and its attachments are confidential and intended
solely for the use of the individual or entity to whom they are
addressed. If you received this e-mail in error, please notify
the HPA Postmaster, postmaster@hpa.com.au, then delete
the e-mail.

This footnote also confirms that this e-mail message has been swept for
the presence of computer viruses by MimeSweeper. Before opening or
using any attachments, check them for viruses and defects.

Our liability is limited to resupplying any affected attachments.

HPA collects personal information to provide and market our services.
For more information about use, disclosure and access see our Privacy
Policy at www.hpa.com.au
**********************************************************************

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

Received on Tue Dec 17 22:44:16 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.