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

Where I am headed is that I would like to know the files and associated 
actions for a commit, then generate a file on-the-fly to be included in the 
commit.  I do not want to rely on the person making the commit; instead, 
I'd like every commit to have the batch script analyze the commit and then 
add accordingly.  Perhaps it's too late at the Check-Commit stage?  I was 
originally thinking of performing this phantom addition on the server side 
and then learned that server-side hook scripts should not try to modify the 
contents of the commit, they should just react with either allowing or 
rejecting.  This is to make sure that the local client and server databases 
do not go out of synchronization.  Makes sense.  So here I am at the client 
side trying to automatically modify commits.

-- 
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/89e7cf31-67ff-435b-933e-1f78b29c602b%40googlegroups.com.

Reply via email to