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

Re: new keyword for repos meta-data (last revision...) ?

From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2005-10-07 12:35:09 CEST

On Fri, Oct 07, 2005 at 11:33:32AM +0200, Fabien COELHO wrote:
> We have the following small but annoying issue with svn. We're exporting
> on a regular basis part of a repository, and we would like to be able to
> know afterwards what revision was exported.
>
> [...]
>
> A new keyword or set of keyword used in a file, say $Info$, would help
> solve our small issue by providing information about the current status of
> the repository (URL, last revision...) when the export, update, switch
> or checkout... is performed.

Keywords are per-file, while what you're proposing is per-working-copy.
This conceptual mismatch would causes several problems for any
implementation, and, as it happens, have just recently been discussed. See
the thread titled "Re: Proposal for $Revision$ keyword amendment",
http://svn.haxx.se/dev/archive-2005-10/0087.shtml.

However, in your case, why not solve the problem by capturing or fixing
the revision number _before_ the export? In other words: run 'svn info'
on the target URL, extract the revision number (along with any other
information you want to keep), and use that as an argument to svn export.

Alternatively, you could create a temporary tag and export from it,
but you might want to avoid the extra commit noise that that solution
would generate.

Regards,
Malcolm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 7 12:36:28 2005

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