On Friday, September 13, 2019 at 11:54:41 PM UTC+2, John Laurence Poole wrote: > > The check commit hook hands as parameter 1 to a batch script a file name > located in the user's temporary working area, i.e. > C:\Users\farbuckle\AppData\Local\Temp\svn1B9.tmp". In the temp file, e.g. > svn1B9.tmp, is a list of file name and paths. > > Example, svn1B9.tmp has as its contents: > > C:\Temp\myrepo\dir1\alpha.txt > C:\Temp\myrepo\dir1\beta.txt > C:\Temp\myrepo\dir1\gamma.txt > > There is no reference to what the action is related to a specific file, > e.g. Add, Modify, Delete, unlike what you might see in the log file. > > Question: Is there a way to obtain what actions are about to be performed > on the files listed in the inventory list? So we might have something like: > > M C:\Temp\myrepo\dir1\alpha.txt > M C:\Temp\myrepo\dir1\beta.txt > D C:\Temp\myrepo\dir1\gamma.txt > A C:\Temp\myrepo\dir1\deltatxt > > Sorry, but that's not implemented. So there's currently no way to get the file list that way.
However, you could fetch the file status in your hook script, using SubWCRev. Here's an example jscript file using SubWCRev to get the status and other info of versioned files: https://osdn.net/projects/tortoisesvn/scm/svn/blobs/head/trunk/src/SubWCRev/testCOM.js -- You received this message because you are subscribed to the Google Groups "TortoiseSVN" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn/43fc8acf-783b-4baa-95c5-2fe31bc2019d%40googlegroups.com.
