[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: Robert Guthrie <rguthrie_at_pobox.com>
Date: 2004-06-30 20:34:32 CEST

Depending on the document format, and whether or not subversion will do
this with your doc's format, you could embed the revision number in the
document itself by using the LastChangedRevision keyword in conjunction
with the svn:keywords property for each of your documents. Read up on
it at:

http://svnbook.red-bean.com/svnbook/ch07s02.html#svn-ch-7-sect-2.3.4

And maybe try it on one of your documents.

If it works, somewhere in your document, there'll be the repository
revision number which corresponds to the last document revision. This
will be tracked automatically by subversion, so you'll never have to
remember it.

On 30 Jun 2004, at 12:46 PM, Ben Collins-Sussman wrote:

> On Wed, 2004-06-30 at 11:32, Hagerty, Joe wrote:
>> As a newb here, I wasn't sure if this were viable or not, but couldn't
>> you use a user property to store the file revision number then simple
>> search the database for the file revision number? Or a combination of
>> the file revision number and the filename?
>
> Every file has a "last changed revision" attached to it already. Run
> 'svn info' on the file to see it. That's effectively the "per-file"
> revision.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 30 20:40:42 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.