Show More
1 | NO CONTENT: new file 100644, binary diff hidden |
|
NO CONTENT: new file 100644, binary diff hidden |
1 | NO CONTENT: new file 100644, binary diff hidden |
|
NO CONTENT: new file 100644, binary diff hidden |
1 | NO CONTENT: new file 100644, binary diff hidden |
|
NO CONTENT: new file 100644, binary diff hidden |
1 | NO CONTENT: new file 100644, binary diff hidden |
|
NO CONTENT: new file 100644, binary diff hidden |
@@ -0,0 +1,28 b'' | |||||
|
1 | #!/bin/sh | |||
|
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 --homedir $TESTDIR/gpg | |||
|
11 | EOF | |||
|
12 | ||||
|
13 | hg init r | |||
|
14 | cd r | |||
|
15 | echo foo > foo | |||
|
16 | hg ci -Amfoo | |||
|
17 | ||||
|
18 | echo '% no signatures' | |||
|
19 | hg sigs | |||
|
20 | ||||
|
21 | echo '% hg sign 0' | |||
|
22 | hg sign 0 | |||
|
23 | ||||
|
24 | echo '% hg sigs' | |||
|
25 | hg sigs | |||
|
26 | ||||
|
27 | echo '% hg sigcheck 0' | |||
|
28 | hg sigcheck 0 |
@@ -0,0 +1,9 b'' | |||||
|
1 | adding foo | |||
|
2 | % no signatures | |||
|
3 | % hg sign 0 | |||
|
4 | Signing 0:e63c23eaa88a | |||
|
5 | % hg sigs | |||
|
6 | hgtest 0:e63c23eaa88ae77967edcf4ea194d31167c478b0 | |||
|
7 | % hg sigcheck 0 | |||
|
8 | e63c23eaa88a is signed by: | |||
|
9 | hgtest |
@@ -146,6 +146,9 b' def has_symlink():' | |||||
146 | def has_tla(): |
|
146 | def has_tla(): | |
147 | return matchoutput('tla --version 2>&1', r'The GNU Arch Revision') |
|
147 | return matchoutput('tla --version 2>&1', r'The GNU Arch Revision') | |
148 |
|
148 | |||
|
149 | def has_gpg(): | |||
|
150 | return matchoutput('gpg --version 2>&1', r'GnuPG') | |||
|
151 | ||||
149 | def has_unix_permissions(): |
|
152 | def has_unix_permissions(): | |
150 | d = tempfile.mkdtemp(prefix=tempprefix, dir=".") |
|
153 | d = tempfile.mkdtemp(prefix=tempprefix, dir=".") | |
151 | try: |
|
154 | try: | |
@@ -183,6 +186,7 b' checks = {' | |||||
183 | "execbit": (has_executablebit, "executable bit"), |
|
186 | "execbit": (has_executablebit, "executable bit"), | |
184 | "fifo": (has_fifo, "named pipes"), |
|
187 | "fifo": (has_fifo, "named pipes"), | |
185 | "git": (has_git, "git command line client"), |
|
188 | "git": (has_git, "git command line client"), | |
|
189 | "gpg": (has_gpg, "gpg client"), | |||
186 | "hotshot": (has_hotshot, "python hotshot module"), |
|
190 | "hotshot": (has_hotshot, "python hotshot module"), | |
187 | "icasefs": (has_icasefs, "case insensitive file system"), |
|
191 | "icasefs": (has_icasefs, "case insensitive file system"), | |
188 | "inotify": (has_inotify, "inotify extension support"), |
|
192 | "inotify": (has_inotify, "inotify extension support"), |
General Comments 0
You need to be logged in to leave comments.
Login now