0

We are working on unity engine for mobile game, I need visualSVN pre-commit hook script for artist who every time missing meta file when added new assets.

How can I configure the server to require meta file to be non-meta file at new file adding to SVN commit?

bahrep
  • 29,961
  • 12
  • 103
  • 150
Seyoung
  • 11
  • Write your pre-commit hook script. You can freely find hook script examples in various programming languages on the web. I'd suggest trying Python. – bahrep Jun 20 '16 at 11:30
  • @bahrep can you explain more detail? how can I excute python at hook script, pls help newbie :) – Seyoung Jun 20 '16 at 12:00

1 Answers1

0
  1. Use the latest VisualSVN Server 3.5 that includes Python 2.7 bindings for Subversion.

  2. Write a pre-commit hook script in Python that will reject invalid commits and allow proper ones. Search for hook examples on the web. Here is an example: how to write a svn hook script & Using python scripts in subversion hooks on windows and much much more.

Community
  • 1
  • 1
bahrep
  • 29,961
  • 12
  • 103
  • 150