##// END OF EJS Templates
branchmap: improve invalid cache message when reading...
Pierre-Yves David -
r18166:3a2e810d default
parent child Browse files
Show More
@@ -22,21 +22,20 def read(repo):
22 22 partial = branchcache(tipnode=last, tiprev=lrev)
23 23 if not partial.validfor(repo):
24 24 # invalidate the cache
25 raise ValueError('invalidating branch cache (tip differs)')
25 raise ValueError('tip differs')
26 26 for l in lines:
27 27 if not l:
28 28 continue
29 29 node, label = l.split(" ", 1)
30 30 label = encoding.tolocal(label.strip())
31 31 if not node in repo:
32 raise ValueError('invalidating branch cache because node '+
33 '%s does not exist' % node)
32 raise ValueError('node %s does not exist' % node)
34 33 partial.setdefault(label, []).append(bin(node))
35 34 except KeyboardInterrupt:
36 35 raise
37 36 except Exception, inst:
38 37 if repo.ui.debugflag:
39 repo.ui.warn(str(inst), '\n')
38 repo.ui.warn(('invalid branchheads cache: %s\n') % inst)
40 39 partial = branchcache()
41 40 return partial
42 41
@@ -140,7 +140,7 Extension disabled for lack of acl.sourc
140 140 query 1; heads
141 141 searching for changes
142 142 all remote heads known locally
143 invalidating branch cache (tip differs)
143 invalid branchheads cache: tip differs
144 144 listing keys for "bookmarks"
145 145 3 changesets found
146 146 list of changesets:
@@ -202,7 +202,7 No [acl.allow]/[acl.deny]
202 202 query 1; heads
203 203 searching for changes
204 204 all remote heads known locally
205 invalidating branch cache (tip differs)
205 invalid branchheads cache: tip differs
206 206 listing keys for "bookmarks"
207 207 3 changesets found
208 208 list of changesets:
@@ -274,7 +274,7 Empty [acl.allow]
274 274 query 1; heads
275 275 searching for changes
276 276 all remote heads known locally
277 invalidating branch cache (tip differs)
277 invalid branchheads cache: tip differs
278 278 listing keys for "bookmarks"
279 279 3 changesets found
280 280 list of changesets:
@@ -773,7 +773,7 wilma can change files with a .txt exten
773 773 query 1; heads
774 774 searching for changes
775 775 all remote heads known locally
776 invalidating branch cache (tip differs)
776 invalid branchheads cache: tip differs
777 777 listing keys for "bookmarks"
778 778 3 changesets found
779 779 list of changesets:
@@ -1091,7 +1091,7 fred is always allowed
1091 1091 query 1; heads
1092 1092 searching for changes
1093 1093 all remote heads known locally
1094 invalidating branch cache (tip differs)
1094 invalid branchheads cache: tip differs
1095 1095 listing keys for "bookmarks"
1096 1096 3 changesets found
1097 1097 list of changesets:
@@ -1167,7 +1167,7 no one is allowed inside foo/Bar/
1167 1167 query 1; heads
1168 1168 searching for changes
1169 1169 all remote heads known locally
1170 invalidating branch cache (tip differs)
1170 invalid branchheads cache: tip differs
1171 1171 listing keys for "bookmarks"
1172 1172 3 changesets found
1173 1173 list of changesets:
@@ -1319,7 +1319,7 OS-level groups
1319 1319 query 1; heads
1320 1320 searching for changes
1321 1321 all remote heads known locally
1322 invalidating branch cache (tip differs)
1322 invalid branchheads cache: tip differs
1323 1323 listing keys for "bookmarks"
1324 1324 3 changesets found
1325 1325 list of changesets:
@@ -1517,7 +1517,7 Branch acl deny test
1517 1517 query 1; heads
1518 1518 searching for changes
1519 1519 all remote heads known locally
1520 invalidating branch cache (tip differs)
1520 invalid branchheads cache: tip differs
1521 1521 listing keys for "bookmarks"
1522 1522 4 changesets found
1523 1523 list of changesets:
@@ -1829,7 +1829,7 push foobar into the remote
1829 1829 query 1; heads
1830 1830 searching for changes
1831 1831 all remote heads known locally
1832 invalidating branch cache (tip differs)
1832 invalid branchheads cache: tip differs
1833 1833 listing keys for "bookmarks"
1834 1834 4 changesets found
1835 1835 list of changesets:
@@ -1917,7 +1917,7 Branch acl conflicting deny
1917 1917 query 1; heads
1918 1918 searching for changes
1919 1919 all remote heads known locally
1920 invalidating branch cache (tip differs)
1920 invalid branchheads cache: tip differs
1921 1921 listing keys for "bookmarks"
1922 1922 4 changesets found
1923 1923 list of changesets:
@@ -2073,7 +2073,7 Non-astro users must be denied
2073 2073 query 1; heads
2074 2074 searching for changes
2075 2075 all remote heads known locally
2076 invalidating branch cache (tip differs)
2076 invalid branchheads cache: tip differs
2077 2077 listing keys for "bookmarks"
2078 2078 4 changesets found
2079 2079 list of changesets:
@@ -126,7 +126,7 Test for invalid branch cache:
126 126 $ cp .hg/bc-invalid $branchcache
127 127
128 128 $ hg --debug log -r foo
129 invalidating branch cache (tip differs)
129 invalid branchheads cache: tip differs
130 130 changeset: 4:adf1a74a7f7b4cd193d12992f5d0d6a004ed21d6
131 131 branch: foo
132 132 tag: tip
General Comments 0
You need to be logged in to leave comments. Login now