Client side hooks PATH argument
From: Peter Koves <kovesp_at_sympatico.ca>
Date: Mon, 19 Aug 2013 18:12:32 -0700 (PDT)
Perhaps I'm confused, but I expected the file passed as the PATH argument to the post-update-hook (and also the post-commit-hook) to contain a list of AFFECTED files rather than just the path(s) that the command was applied to. So for update, I expected the actually updated files to be in the list.
Is the only way to find out what was updated or committed to have a 'pre-' hook, apply 'svn st -v' to the set of paths supplied, save the output in some well known location, then repeat in the 'post-' hook and derive the set of changes by comparing revision numbers? And, this doesn't even work for commit ... I could fake it with trying to do 'svn st -u' ... but the commit may be selectively stopped from the dialog.
My actual application is this: I have tree which contains (among other things) some XML files. These files need to have an XML processing instruction changed on a particular system, so I'd like to do that whenever any file is updated. Then the PI has to be changed back before the file is committed.
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
|
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.