File: pre-revprop-change.example

package info (click to toggle)
bzr-svn 1.2.1-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,860 kB
  • sloc: python: 27,769; makefile: 86; sh: 9; xml: 7
file content (21 lines) | stat: -rwxr-xr-x 551 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# This is an example prev-revprop-change hook that 
# allows setting bzr revision properties on Subversion 
# revisions.

# This script is only needed if you would like to use 
# revision properties rather than file properties and 
# is not necessary when the server and client are 
# both running Subversion 1.5.

REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"

if [ "$ACTION" = "M" -a "$PROPNAME" = "bzr:gpg-signature" ]; then exit 0; fi

echo "Changing revision properties other than bzr:gpg-signature is prohibited" >&2
exit 1