##// END OF EJS Templates
Merge with stable
Merge with stable

File last commit:

r11692:52e4ac3e stable
r11697:efcdf6a9 merge default
Show More
test-tag
88 lines | 2.0 KiB | text/plain | TextLexer
Thomas Arendsen Hein
Don't use 'set -x', fix exports, sed and hexdump usage for Solaris.
r800 #!/bin/sh
mpm@selenic.com
From: Radoslaw Szkodzinski <astralstorm@gorzow.mm.pl>...
r401
Brett Carter
clone: try updating to the actual changeset specified in options...
r8417 hg init test
cd test
mpm@selenic.com
From: Radoslaw Szkodzinski <astralstorm@gorzow.mm.pl>...
r401 echo a > a
hg add a
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg commit -m "test" -d "1000000 0"
mpm@selenic.com
From: Radoslaw Szkodzinski <astralstorm@gorzow.mm.pl>...
r401 hg history
Benjamin Pollack
tag: do not allow tag names to consist solely of whitespace (issue2307)...
r11692
hg tag ' '
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg tag -d "1000000 0" "bleah"
mpm@selenic.com
From: Radoslaw Szkodzinski <astralstorm@gorzow.mm.pl>...
r401 hg history
echo foo >> .hgtags
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg tag -d "1000000 0" "bleah2" || echo "failed"
mpm@selenic.com
From: Radoslaw Szkodzinski <astralstorm@gorzow.mm.pl>...
r401
Benoit Boissinot
fix 'hg tag <tagname> <revision>...
r1596 hg revert .hgtags
John Coomes
tag: allow multiple tags to be added or removed...
r6321 hg tag -d "1000000 0" -r 0 x y z y y z || echo "failed"
hg tag -d "1000000 0" tap nada dot tip null . || echo "failed"
hg tag -d "1000000 0" "bleah" || echo "failed"
hg tag -d "1000000 0" "blecch" "bleah" || echo "failed"
hg tag -d "1000000 0" --remove "blecch" || echo "failed"
hg tag -d "1000000 0" --remove "bleah" "blecch" "blough" || echo "failed"
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 hg tag -d "1000000 0" -r 0 "bleah0"
John Coomes
tag: allow multiple tags to be added or removed...
r6321 hg tag -l -d "1000000 0" -r 1 "bleah1"
hg tag -d "1000000 0" gack gawk gorp
hg tag -d "1000000 0" -f gack
hg tag -d "1000000 0" --remove gack gorp
Benoit Boissinot
fix 'hg tag <tagname> <revision>...
r1596
cat .hgtags
cat .hg/localtags
Benoit Boissinot
change 'hg tag' to tag the parent rev instead of tip
r2647 hg update 0
hg tag -d "1000000 0" "foobar"
cat .hgtags
cat .hg/localtags
Benoit Boissinot
disallow '\n' and '\r' in tag names...
r1561 hg tag -l 'xx
newline'
hg tag -l 'xx:xx'
Bryan O'Sullivan
tag: handle .hgtags and .hg/localtags with missing final newline (issue 601)...
r4892
Brett Carter
clone: try updating to the actual changeset specified in options...
r8417 echo % cloning local tags
cd ..
hg -R test log -r0:5
hg clone -q -rbleah1 test test1
hg -R test1 parents --style=compact
hg clone -q -r5 test#bleah1 test2
hg -R test2 parents --style=compact
hg clone -q -U test#bleah1 test3
hg -R test3 parents --style=compact
cd test
Bryan O'Sullivan
tag: handle .hgtags and .hg/localtags with missing final newline (issue 601)...
r4892 echo % issue 601
Thomas Arendsen Hein
fix test-tag on Solaris
r4933 python << EOF
f = file('.hg/localtags'); last = f.readlines()[-1][:-1]; f.close()
f = file('.hg/localtags', 'w'); f.write(last); f.close()
EOF
Bryan O'Sullivan
tag: handle .hgtags and .hg/localtags with missing final newline (issue 601)...
r4892 cat .hg/localtags
hg tag -l localnewline
cat .hg/localtags
Thomas Arendsen Hein
fix test-tag on Solaris
r4933 python << EOF
f = file('.hgtags'); last = f.readlines()[-1][:-1]; f.close()
f = file('.hgtags', 'w'); f.write(last); f.close()
EOF
Bryan O'Sullivan
tag: handle .hgtags and .hg/localtags with missing final newline (issue 601)...
r4892 hg ci -d '1000000 0' -m'broken manual edit of .hgtags'
cat .hgtags
hg tag -d '1000000 0' newline
cat .hgtags
Nicolas Dumazet
tag: warn users about tag/branch possible name conflicts...
r11063
echo % tag and branch using same name
hg branch tag-and-branch-same-name
hg ci -m"discouraged"
hg tag tag-and-branch-same-name
Steve Losh
tag: add -e/--edit option for modifying the commit message
r11185
echo '% test custom commit messages'
cat > $HGTMP/editor <<'__EOF__'
#!/bin/sh
echo "custom tag message" > "$1"
echo "second line" >> "$1"
__EOF__
chmod +x "$HGTMP"/editor
HGEDITOR="'$HGTMP'"/editor hg tag custom-tag -e
hg log -l1 --template "{desc}\n"