Files list in pre-commit hook (Windows7)

peppe77k
peppe77k
Hi,  I'm using SVN + TortoiseSVn under Windows system.    I would to know is it possible to know, before the commit, what files the user is going to committing because I want to inhibit the commit for some file couples. If the user commits aforbidden file couple I'll stop the commit.    Have you some suggestion?    thanks.    Giuseppe

Last updated

GPinzone
GPinzone
Yes, just use svnlook to get a list of the files. You probably want to filter out the delete files from the output and look for the files you want to restrict.
peppe77k
peppe77k
peppe77k;125193Hi,  I'm using SVN + TortoiseSVn under Windows system.    I would to know is it possible to know, before the commit, what files the user is going to committing because I want to inhibit the commit for some file couples. If the user commits aforbidden file couple I'll stop the commit.    Have you some suggestion?    thanks.    Giuseppe
 I don't want the user to commit togheter two particular files (these files are known, i.e. pippo.txt and pluto.txt). This because after the commit of each one I send an email with its history file . These history files are updated with the log insert in the commit phase and it describe the changes done in each file. If the user commits these files at the same time, the same log with the changes will be copied in both history files and I don't want that the log for the first one file is inserted in the history file of the second one and vice versa.  If I know the files that will be commited I can stop the commit and show an error message.
Maria
Maria
Hi, how do you do to send an email by using SVN + TortoiseSVN under Windows? I try to save hook scripts but they don't work. Could you help me?  Thanks!  María.
Maria
Maria
Hi, how do you do to send emails after commit by using SVN + TortoiseSVN? I tried with hook scripts but they don't work, not even the easy one. Could you help me?  Thanks!!  María.

1-5 of 5

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.