Announcement

Collapse
No announcement yet.

Files list in pre-commit hook (Windows7)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Files list in pre-commit hook (Windows7)

    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

  • #2
    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.

    Comment


    • #3
      Originally posted by peppe77k View Post
      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
      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.

      Comment


      • #4
        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.

        Comment


        • #5
          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.

          Comment

          Working...
          X