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

RE: Re: file by file revision

From: Campbell, Matthew A <Matthew.Campbell_at_Relizon.com>
Date: 2004-06-30 20:24:32 CEST

Not sure what type of documents we're talking about here, so this may not be
an option, but if the documents are in an ASCII-based format (Text, LaTex,
HTML, XML, SGML, Docbook, etc. etc. etc.) then one could use keyword
substitution to insert this LastChangedRevision value automatically into
every checked-out or exported copy of the document. Similar to the $Id:$
tag I'm using in source code.

Downsides: doesn't behave like a version number, so readers ought to be
familiar with the Subversion philosophy if they're likely to care about this
number. Also only works for non-binary document formats. PDF is right out,
as are MS Word, PageMaker, Quark, and (*sigh*) OpenOffice.org. (What's the
point of using an XML file format if the thing has to be zipped up for the
app to read it!?!?)

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

> -----Original Message-----
> From: Ben Collins-Sussman [mailto:sussman@collab.net]
> Sent: Wednesday, June 30, 2004 1:47 PM
> To: Hagerty, Joe
> Cc: users@subversion.tigris.org
> Subject: RE: Re: file by file revision
>
>
> 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:36: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.