##// END OF EJS Templates
tags: don't crash if unable to write tag cache...
tags: don't crash if unable to write tag cache This happens with hgweb in real life, if the httpd user is unable to write in the repository directory. Another case is doing 'hg incoming' on a repository in the filesystem owned by someone else.

File last commit:

r9366:9ff178e7 default
r9366:9ff178e7 default
Show More
test-tags.out
153 lines | 5.2 KiB | text/plain | TextLexer
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 % setup
Greg Ward
tags: implement persistent tag caching (issue548)....
r9151 no tag cache
Matt Mackall
identify: show nullid for empty repo
r4662 000000000000 tip
Greg Ward
tags: implement persistent tag caching (issue548)....
r9151 no tag cache
Thomas Arendsen Hein
Make hg update more verbose by default (issue12)...
r2175 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 acb14030fe0a tip
Greg Ward
tags: implement persistent tag caching (issue548)....
r9151 tag cache exists
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 % create local tag with long name
tip 0:acb14030fe0a
This is a local tag with a really long name! 0:acb14030fe0a
% create a tag behind hg's back
acb14030fe0a21b60322c440ad2d20cf7685a376 first
tip 1:b9154636be93
first 0:acb14030fe0a
b9154636be93 tip
Greg Ward
tags: don't crash if unable to write tag cache...
r9366 % identify with cold cache
b9154636be93 tip
% identify with unwritable cache
Greg Ward
tags: implement persistent tag caching (issue548)....
r9151 b9154636be93 tip
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 % create a branch
mpm@selenic.com
Update test output for status change...
r748 M a
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 b9154636be93+ tip
Thomas Arendsen Hein
Make hg update more verbose by default (issue12)...
r2175 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 acb14030fe0a+ first
acb14030fe0a+ first
mpm@selenic.com
Update test output for status change...
r748 M a
Dirkjan Ochtman
warn about new heads on commit (issue842)
r6336 created new head
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 c8edf04160c7 tip
% merge the two heads
Thomas Arendsen Hein
Make hg update more verbose by default (issue12)...
r2175 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
(branch merge, don't forget to commit)
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 c8edf04160c7+b9154636be93+ tip
mpm@selenic.com
Clean up some merge logic...
r993 M .hgtags
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 % create fake head, make sure tag not visible afterwards
tip 6:35ff301afafe
first 0:acb14030fe0a
% add invalid tags
committing .hgtags:
acb14030fe0a21b60322c440ad2d20cf7685a376 first
spam
foo bar
% report tag parse error on other head
Vadim Gelfer
fix parsing of tags. make parse errors useful. add new tag tests....
r2320 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
Dirkjan Ochtman
warn about new heads on commit (issue842)
r6336 created new head
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 .hgtags@75d9f02dfe28, line 2: cannot parse entry
.hgtags@75d9f02dfe28, line 4: node 'foo' is not well formed
.hgtags@c4be69a18c11, line 2: node 'x' is not well formed
tip 8:c4be69a18c11
first 0:acb14030fe0a
changeset: 8:c4be69a18c11
Benoit Boissinot
add checking for invalid entries in tag files...
r1986 tag: tip
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 parent: 3:ac5e980c4dc0
Benoit Boissinot
add checking for invalid entries in tag files...
r1986 user: test
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 date: Thu Jan 01 00:00:00 1970 +0000
Vadim Gelfer
fix parsing of tags. make parse errors useful. add new tag tests....
r2320 summary: head
Benoit Boissinot
add checking for invalid entries in tag files...
r1986
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 % test tag precedence rules
Alexis S. L. Carvalho
Correct optimization from 3464f5e77f34; add a test....
r3577 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
Dirkjan Ochtman
warn about new heads on commit (issue842)
r6336 created new head
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 tip 4:0c192d7d5e6b
bar 1:78391a272241
Greg Ward
test-tags: enhance the test to probe tag caching better (issue548)....
r9144 tip 4:0c192d7d5e6b
bar 1:78391a272241
% detailed dump of tag info
heads:
4:0c192d7d5e6b
3:6fa450212aeb
2:7a94127795a3
rev 2: .hgtags:
bbd179dfa0a71671c253b3ae0aa1513b60d199fa bar
rev 3: .hgtags:
bbd179dfa0a71671c253b3ae0aa1513b60d199fa bar
bbd179dfa0a71671c253b3ae0aa1513b60d199fa bar
78391a272241d70354aa14c874552cad6b51bb42 bar
rev 4: .hgtags:
bbd179dfa0a71671c253b3ae0aa1513b60d199fa bar
.hg/tags.cache:
Greg Ward
tags: implement persistent tag caching (issue548)....
r9151 4 0c192d7d5e6b78a714de54a2e9627952a877e25a 0c04f2a8af31de17fab7422878ee5a2dadbc943d
3 6fa450212aeb2a21ed616a54aea39a4a27894cd7 7d3b718c964ef37b89e550ebdafd5789e76ce1b0
2 7a94127795a33c10a370c93f731fd9fea0b79af6 0c04f2a8af31de17fab7422878ee5a2dadbc943d
Greg Ward
tags: support 'instant' tag retrieval (issue548)...
r9152
78391a272241d70354aa14c874552cad6b51bb42 bar
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 % test tag removal
changeset: 5:5f6e8655b1c7
Matt Mackall
tags: add --remove
r4213 tag: tip
user: test
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 date: Thu Jan 01 00:00:00 1970 +0000
files: .hgtags
description:
Removed tag bar
Matt Mackall
tags: add --remove
r4213
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 diff -r 0c192d7d5e6b -r 5f6e8655b1c7 .hgtags
--- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +1,3 @@
bbd179dfa0a71671c253b3ae0aa1513b60d199fa bar
+78391a272241d70354aa14c874552cad6b51bb42 bar
+0000000000000000000000000000000000000000 bar
tip 5:5f6e8655b1c7
Greg Ward
test-tags: enhance the test to probe tag caching better (issue548)....
r9144 tip 5:5f6e8655b1c7
Brendan Cully
Test attempt to remove nonexistent tag
r4651 % remove nonexistent tag
John Coomes
tag: allow multiple tags to be added or removed...
r6321 abort: tag 'foobar' does not exist
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 changeset: 5:5f6e8655b1c7
Brendan Cully
Test attempt to remove nonexistent tag
r4651 tag: tip
user: test
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 date: Thu Jan 01 00:00:00 1970 +0000
Brendan Cully
Test attempt to remove nonexistent tag
r4651 summary: Removed tag bar
Greg Ward
test-tags: enhance the test to probe tag caching better (issue548)....
r9144 % rollback undoes tag operation
rolling back last transaction
tip 4:0c192d7d5e6b
bar 1:78391a272241
tip 4:0c192d7d5e6b
bar 1:78391a272241
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 % test tag rank
tip 5:85f05169d91d
bar 0:bbd179dfa0a7
Matt Mackall
tags: fix abababa case, with test case
r4266 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
Dirkjan Ochtman
warn about new heads on commit (issue842)
r6336 created new head
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 tip 6:735c3ca72986
bar 0:bbd179dfa0a7
% don't allow moving tag without -f
John Coomes
tag: allow multiple tags to be added or removed...
r6321 abort: tag 'bar' already exists (use -f to force)
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 tip 6:735c3ca72986
bar 0:bbd179dfa0a7
Greg Ward
test-tags: enhance the test to probe tag caching better (issue548)....
r9144 % strip 1: expose an old head
tip 5:735c3ca72986
bar 1:78391a272241
tip 5:735c3ca72986
bar 1:78391a272241
% strip 2: destroy whole branch, no old head exposed
tip 4:735c3ca72986
bar 0:bbd179dfa0a7
tip 4:735c3ca72986
bar 0:bbd179dfa0a7
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 % test tag rank with 3 heads
Alexis S. L. Carvalho
use .extend instead of .append in readtags
r4482 adding foo
Matt Mackall
tag: force load of tag cache
r7814 tip 3:197c21bbbf2c
bar 2:6fa450212aeb
Alexis S. L. Carvalho
use .extend instead of .append in readtags
r4482 % bar should still point to rev 2
Matt Mackall
tag: force load of tag cache
r7814 tip 4:3b4b14ed0202
bar 2:6fa450212aeb
Greg Ward
test-tags: clarify test output; simplify test script a bit (issue548)....
r9143 % remove local as global and global as local
Osku Salerma
Properly check tag's existence as a local/global tag when removing it.
r5657 adding foo
John Coomes
tag: allow multiple tags to be added or removed...
r6321 abort: tag 'localtag' is not a global tag
abort: tag 'globaltag' is not a local tag
Osku Salerma
Add --verbose support to tags command.
r5658 tip 1:a0b6fe111088
localtag 0:bbd179dfa0a7 local
globaltag 0:bbd179dfa0a7