Show More
@@ -1,28 +1,27 b'' | |||||
1 | #!/bin/sh |
|
1 | Test the GPG extension | |
2 |
|
||||
3 | "$TESTDIR/hghave" gpg || exit 80 |
|
|||
4 |
|
||||
5 | cat <<EOF >> $HGRCPATH |
|
|||
6 | [extensions] |
|
|||
7 | gpg= |
|
|||
8 |
|
||||
9 | [gpg] |
|
|||
10 | cmd=gpg --no-permission-warning --no-secmem-warning --homedir $TESTDIR/gpg |
|
|||
11 | EOF |
|
|||
12 |
|
2 | |||
13 | hg init r |
|
3 | $ "$TESTDIR/hghave" gpg || exit 80 | |
14 | cd r |
|
4 | $ cat <<EOF >> $HGRCPATH | |
15 | echo foo > foo |
|
5 | > [extensions] | |
16 | hg ci -Amfoo |
|
6 | > gpg= | |
17 |
|
7 | > | ||
18 | echo '% no signatures' |
|
8 | > [gpg] | |
19 | hg sigs |
|
9 | > cmd=gpg --no-permission-warning --no-secmem-warning --homedir $TESTDIR/gpg | |
|
10 | > EOF | |||
|
11 | $ hg init r | |||
|
12 | $ cd r | |||
|
13 | $ echo foo > foo | |||
|
14 | $ hg ci -Amfoo | |||
|
15 | adding foo | |||
20 |
|
16 | |||
21 | echo '% hg sign 0' |
|
17 | $ hg sigs | |
22 | hg sign 0 |
|
18 | ||
|
19 | $ hg sign 0 | |||
|
20 | Signing 0:e63c23eaa88a | |||
23 |
|
21 | |||
24 |
|
|
22 | $ hg sigs | |
25 | hg sigs |
|
23 | hgtest 0:e63c23eaa88ae77967edcf4ea194d31167c478b0 | |
26 |
|
24 | |||
27 |
|
|
25 | $ hg sigcheck 0 | |
28 | hg sigcheck 0 |
|
26 | e63c23eaa88a is signed by: | |
|
27 | hgtest |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now