File: 080_group_auto_prop_expl_commit

package info (click to toggle)
fsvs 1.2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,964 kB
  • ctags: 1,464
  • sloc: ansic: 16,650; sh: 5,885; perl: 783; makefile: 338; python: 90
file content (50 lines) | stat: -rwxr-xr-x 748 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash

set -e 
$PREPARE_CLEAN > /dev/null
$INCLUDE_FUNCS
cd $WC


# http://fsvs.tigris.org/ds/viewMessage.do?dsForumId=3928&dsMessageId=2981798

logfile=$LOGDIR/080.group_auto_prop_expl_commit

grp_dir=`$PATH2SPOOL $WC ^`/groups
mkdir $grp_dir

cat <<EOT > $grp_dir/secret
auto-prop    fsvs:commit-pipe    base64
take
EOT
$BINq groups "group:secret,./**/f*"


DATA=plain

mkdir dir1
echo $DATA > dir1/file
cp -a dir1 dir2

$BINq ci -m c1 dir1
# explicitly committing
$BINq ci -m c1 dir2/file


echo $DATA | base64 > cmp
$INFO "expect this:"
cat cmp

for d in dir1 dir2
do
	$INFO "$d got this:"
	svn cat $REPURL/$d/file | tee f.$d
	if ! diff -u f.$d cmp
	then 
		$ERROR "Not correctly encoded in $d"
	fi
done


$SUCCESS "group-autoprops ok."