[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: B. W. Fitzpatrick <fitz_at_red-bean.com>
Date: 2002-12-17 19:57:40 CET

Peter Gervai <grin@tolna.net> writes:

> Please enlighten me, as this is one of the the weirdest things I've ever
> seen.
>
> Why aren't version numbers in Subversion sources?

We just don't use them because it's simple to find out the version of
an item in your working copy by using Subversion (see below).
 
> I thought that some scripts (tools/ directory comes to mind) have missing
> version header because they're unimportant, were created in 10 minutes and
> is autor had better to do than propset svn:keywords. But I realised just a
> moment before that the whole subversion source tree is one big versionless
> heap of code. There is no way to tell whether the code on my disk is newer
> or older than the one in the repos!
>
> Someone please explain this, or kick me while pointing to the entry in the
> FAQ which explains this. And meanwhile tell the secret method everyone uses
> to decide the relation between an exported file and its pair in the
> repository.

Ah. No kicking necessary. You want to use 'svn status' with the -v option:

pantheon: /home/fitz/svn-work/subversion/tools$ svn status -v
             4081 4079 niemeyer .
             4081 3766 blair backup
             4081 3766 blair backup/hot-backup.py
             4081 3808 blair cgi
             4081 3807 blair cgi/mirror_dir_through_svn.README
             4081 3808 blair cgi/mirror_dir_through_svn.cgi
             4081 1225 david cgi/svn-log.cgi
             4081 3748 cmpilato cgi/svn-log.pl
             4081 3748 cmpilato cgi/tweak-log.cgi
             4139 4135 kraai client-side
             4081 3803 xsteve client-side/psvn
             4081 3803 xsteve client-side/psvn/psvn.el
             4081 2398 blair client-side/search-svnlog.pl
             4081 3675 kfogel client-side/showchange.pl
             4081 3930 rooneg client-side/svn.vim
             4081 3768 blair client-side/svn_all_diffs.pl
             ...

This is the 'long form' output of svn status. The first column of
numbers shows the working-revision of the item. The third and fourth
columns show the revision in which the item last changed, and who
changed it.

I would suggest reading chapter 3 of the book:

  http://svnbook.red-bean.com/book.html#svn-ch-3

-Fitz

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 17 19:58:36 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.