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

determining what was updated, using client hook scripts

From: Alexander Haley <ahaley_at_meditech.com>
Date: Mon, 4 Nov 2013 13:23:22 -0500

*tl;dr* - I wish the POST-UPDATE client hook received (as an argument) a
file containing the explicit list of paths/files updated.

Hello, I'd like to outline a problem I've worked through in the hope that
A) there is an easier way or B) that I might hear feed back if this is
worth asking for an enhancement over.

For my build environment's needs I need a list of which files were updated
when a client has updated the working copy. I currently achieve this by
the following inefficient technique.

First) During PRE-UPDATE I use a TortoiseSVN hook to capture the output
from:
svn --status --verbose --xml <PATH>
where PATH is derived from the PATH file handed to the PRE-UPDATE hook.
 So, basically I inventory the working copy , dumping the results into a
structure.

--then--

Second) During POST-UPDATE I again inventory via the svn verbose status
command , and now I have a before and after set and from these I subtract
and decipher exactly which files where updated.

This is slow. It works - but it is slow. What I would greatly like is to
have access (at the client script level) to the information being displayed
in the TortoiseSVN window itself. Right there on the screen are the very
file paths I'd be interested in - but no such feature seemingly exists.

Anyone ever explore this? Perhaps there is a much better way to decipher
what files exactly were updated during an update? Perhaps this is
something useful to suggest as an enhancement? I'm interested in your
responses, thanks in advance,

Alex

-- 
Alexander Haley, Computer Scientist, 781-774-5156
Medical Information Technology, Inc.
Mailstop: F4E16W, MEDITECH Circle, Westwood, MA 02090
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3067844
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-11-04 19:23:46 CET

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

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