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

getting repository last change revisionfor a file

From: Erwan Lacoste <erwan.lacoste_at_rhapso.fr>
Date: 2004-07-30 10:04:39 CEST

Hi all,
I'm migrating a repository from CVS to SVN. I want to (re)write a PHP
script which can list the files from a local copy that need to be updated
( a simple ' svn st -uv | grep '*' ') and print them on a web page. I
would also need for each file the last revision in which the item has last
changed on the local repository (the second revision column with svn st
-v), and the last revision in which the item has last changed on the
global repository. If i could get the number of commits per file between
local repository and the global one, it would be great.
I couldn't find a way to get such info with the svn client commands. I
thought of a way, wich is adding a property to the file each time I run a
commit (with the hooks). Every time I run 'svn ci', I could edit a
"last-changed" property to the current revision, for each file wich is
commited. I could also edit a "number-of-changes" property.
I hope there is a more simple way, I'd be glad to find about it.

-- 
Erwan Lacoste
Stagiaire
RHAPSO
1, rue Galvani
91300 Massy
Tel +33 (0)1 60 13 79 50
Fax +33 (0)1 69 32 19 61
-- 
Erwan Lacoste
Stagiaire
RHAPSO
1, rue Galvani
91300 Massy
Tel +33 (0)1 60 13 79 50
Fax +33 (0)1 69 32 19 61
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 30 10:12:09 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.