Verbatim:Interaction with SVN

From MozillaWiki
Revision as of 01:51, 11 August 2008 by Clouserw (talk | contribs)
Jump to navigation Jump to search

Verbatim » Interaction with SVN (bug 444430)

From Verbatim's perspective

  1. A Verbatim SVN+SSH account will be setup such that commits by the user automatically use the ssh key.
  2. After a user changes a file and presses commit we will:
    1. `svn up` the local files and makes sure they are up to date.
    2. Set the translate:author property to the currently logged in user
    3. `svn commit` as usual

From the SVN Server's perspective

  1. Install svn:properties script and post-commit hook including configuration (bugs to come shortly)
  2. Get an incoming commit from the Verbatim SVN account
    1. The SVN post-commit hook will check if the author should be switched and if it should will switch it.
  • For security the SVN hook verifies that this is from the Verbatim SVN account before it does anything - if it's not there is no further action. This prevents random people from setting translate:author and committing as other people.