Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6979655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:54:50+00:00 2026-05-27T17:54:50+00:00

I am using CollabNet Subversion in Windows, I been searching around on how can

  • 0

I am using CollabNet Subversion in Windows, I been searching around on how can I force user to put in their comment before committing their changes into SVN. The search result are more focus in Linux enviroment, and very less resource in Windows environment. So lucky that I found this link which is targeted on Windows.

Unfortunately, with the code provided, I still couldn’t get it work in TortoiseSVN and EclipseSVN. According to the comment provided, the pre-commit.tmpl should be rename to pre-commit.bat, but it still not working.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:54:51+00:00Added an answer on May 27, 2026 at 5:54 pm

    Did you put that script into \hooks folder? If yes I suspect that script mentioned lacks environment setup (since hooks are executed in a clean environment). From SVN book:

    For security reasons, the Subversion repository executes hook programs
    with an empty environment—that is, no environment variables are set at
    all, not even $PATH (or %PATH%, under Windows). Because of this, many
    administrators are baffled when their hook program runs fine by hand,
    but doesn’t work when run by Subversion. Be sure to explicitly set any
    necessary environment variables in your hook program and/or use
    absolute paths to programs.

    Try running with just echoes at first to be sure it is invoked by server at all:

    @echo off
    setlocal
    
    echo Commit stopped 1>&2
    exit 1
    

    If it’s working, then try adding this on the top of that batch:

    rem Add path to Subversion executable
    set path=%path%;c:\Program Files\Subversion\bin
    

    BTW, I also found a related article here (contains also pre-commit hook example).

    Update

    You may also try solution for the same problem here: SVN Pre Commit Hooks

    Update2

    I think you are messing up client side hooks with server side ones. The first is invoked by SVN client, so parameters passed and how results are interpreted are totally client specific. I suppose the TortoiseSVN hooks are not intended to reject commits (i.e. errorlevel is not checked) but can be used for integration with other systems. See also example here. To really reject commits – you need to add these hooks on SVN server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My svn server is acting funky. We're using Collabnet svn binary on a Windows
I am trying to install the latest version of Collabnet subversion on my windows
I'm using Collabnet SVN client versions 1.5 & 1.6. My local machine is running
Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button
Using C#, I need a class called User that has a username, password, active
Using the Cocoa Framework, how can I add bullets and numbering to text?
Using jQuery, one can easily find out whether a particular element is visible using
I have been using SVN for a little while now. recently on a project
Using the http://www.ifans.com/forums/showthread.php?t=132024 post from another question i am allowing the user to enter

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.