I suggest you ...

Add Option for Mandatory Comments on Commit

Add the Option for Mandatory Comments on Commit.

Forcing a comment to be made before commit is allowed.

Default setting for All New projects and Individual settings for existing projects.

123 votes
Vote
Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
You have left! (?) (thinking…)
Peter Taylor shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

3 comments

Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
Submitting...
  • pokerdiy commented  ·   ·  Flag as inappropriate

    I added login message size to my SVN as a property thinking this would help but Ankh seems to override it? I'm new to SVN and ankh - but this would be a great enhancement.

  • John Gietzen commented  ·   ·  Flag as inappropriate

    We use a pre-commit-hook on the repo itself. This prevents them circumventing it with tortoise.

    @echo off
    SET SVNLOOK=svnlook.exe
    SET GREP=grep.exe

    REM Prevent changes to tags.
    ("%svnlook%" changed -t %2 %1 | "%grep%" "^U.*/tags/") && (echo Cannot commit an update to a tag.>&2 && exit 1)

    REM Prevent commits without comments.
    ("%svnlook%" log -t %2 %1 | "%grep%" "[a-zA-Z0-9]") || (echo You must specify a comment for all actions.>&2 && exit 1)

    exit 0

Feedback and Knowledge Base