tests/test-tag
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 16 Dec 2005 11:12:08 -0600
changeset 1592 347c44611348
parent 1561 9c6d0abdb94e
child 1596 41366b7d6709
permissions -rwxr-xr-x
gpg signing extension for hg the principle is almost the same as how tags work: .hgsigs stores signatures, localsigs stores local signatures the format of the signatures is: nodeid sigversion base64_detached_sig sigversion 0 signs simply the nodeid (maybe we would like to sign other things in the future). you can associate fingerprints with roles in hgrc like: [gpg] fingerprint_of_a_key_without_spaces = release fingerprint_of_a_key_without_spaces = contributor, testing the key used for signing can be specified on the command line or via hgrc (key =) thanks to Eric Hopper for testing and bugfixing

#!/bin/sh

hg init
echo a > a
hg add a
hg commit -m "test" -d "0 0"
hg history
hg tag -d "0 0" "bleah"
hg history

echo foo >> .hgtags
hg tag -d "0 0" "bleah2" || echo "failed"

hg tag -l 'xx
newline'
hg tag -l 'xx:xx'
true