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

Re: file by file revision

From: Cristi BALAN <mental_at_gmail.com>
Date: 2004-06-30 10:46:30 CEST

On Wed, 30 Jun 2004 10:31:13 +0200, Ivan Horvath <i.horvath@alco.co.hu> wrote:
> Dear Max,
> yes, i can imagine that there are many advantage for this philosophy ...
> here is what i need:
> i would like to use a version control system to store documents, manage
> histories, manage versions of docs in a document control system.
> subversion is very nice for this, it has an own storage system, handle
> permissions, web interface, etc, but small problem of handling version
> numbers.
> that means the document version number has to be managed by my
> application, but how can i relate my version number to the real revision
> number in subversion system?
> if for instance a user wants to see the 2. version of the document, but
> the last (actual) version is already 7. how i know that which revision i
> should get from subversion history?

Hackish idea... *ducks*

svn log -r1:HEAD wcfileorrepopath -q | grep "|" | wc -l

will give you the number of times this file was changed

Based on this, you can find out the subversion revision number of the
"file revision number"

Cristi BALAN

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 30 10:48:22 2004

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

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