##// END OF EJS Templates
pushkey: add more verbose debug output regarding pushkey...
Pierre-Yves David -
r17293:d3f84ccc stable
parent child Browse files
Show More
@@ -2540,6 +2540,7 b' class localrepository(object):'
2540 2540 def pushkey(self, namespace, key, old, new):
2541 2541 self.hook('prepushkey', throw=True, namespace=namespace, key=key,
2542 2542 old=old, new=new)
2543 self.ui.debug('pushing key for "%s:%s"\n' % (namespace, key))
2543 2544 ret = pushkey.push(self, namespace, key, old, new)
2544 2545 self.hook('pushkey', namespace=namespace, key=key, old=old, new=new,
2545 2546 ret=ret)
@@ -2547,6 +2548,7 b' class localrepository(object):'
2547 2548
2548 2549 def listkeys(self, namespace):
2549 2550 self.hook('prelistkeys', throw=True, namespace=namespace)
2551 self.ui.debug('listing keys for "%s"\n' % namespace)
2550 2552 values = pushkey.list(self, namespace)
2551 2553 self.hook('listkeys', namespace=namespace, values=values)
2552 2554 return values
@@ -236,6 +236,7 b' class wirepeer(peer.peerrepository):'
236 236 if not self.capable('pushkey'):
237 237 yield False, None
238 238 f = future()
239 self.ui.debug('preparing pushkey for "%s:%s"\n' % (namespace, key))
239 240 yield todict(namespace=encoding.fromlocal(namespace),
240 241 key=encoding.fromlocal(key),
241 242 old=encoding.fromlocal(old),
@@ -256,6 +257,7 b' class wirepeer(peer.peerrepository):'
256 257 if not self.capable('pushkey'):
257 258 yield {}, None
258 259 f = future()
260 self.ui.debug('preparing listkeys for "%s"\n' % namespace)
259 261 yield todict(namespace=encoding.fromlocal(namespace)), f
260 262 d = f.value
261 263 r = {}
@@ -82,6 +82,7 b' Extension disabled for lack of a hook'
82 82 query 1; heads
83 83 searching for changes
84 84 all remote heads known locally
85 listing keys for "bookmarks"
85 86 3 changesets found
86 87 list of changesets:
87 88 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -115,8 +116,11 b' Extension disabled for lack of a hook'
115 116 adding quux/file.py revisions
116 117 files: 3/3 chunks (100.00%)
117 118 added 3 changesets with 3 changes to 3 files
119 listing keys for "phases"
120 listing keys for "namespaces"
118 121 updating the branch cache
119 122 checking for updated bookmarks
123 listing keys for "bookmarks"
120 124 repository tip rolled back to revision 0 (undo push)
121 125 0:6675d58eff77
122 126
@@ -137,6 +141,7 b' Extension disabled for lack of acl.sourc'
137 141 searching for changes
138 142 all remote heads known locally
139 143 invalidating branch cache (tip differs)
144 listing keys for "bookmarks"
140 145 3 changesets found
141 146 list of changesets:
142 147 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -172,8 +177,11 b' Extension disabled for lack of acl.sourc'
172 177 added 3 changesets with 3 changes to 3 files
173 178 calling hook pretxnchangegroup.acl: hgext.acl.hook
174 179 acl: changes have source "push" - skipping
180 listing keys for "phases"
181 listing keys for "namespaces"
175 182 updating the branch cache
176 183 checking for updated bookmarks
184 listing keys for "bookmarks"
177 185 repository tip rolled back to revision 0 (undo push)
178 186 0:6675d58eff77
179 187
@@ -195,6 +203,7 b' No [acl.allow]/[acl.deny]'
195 203 searching for changes
196 204 all remote heads known locally
197 205 invalidating branch cache (tip differs)
206 listing keys for "bookmarks"
198 207 3 changesets found
199 208 list of changesets:
200 209 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -240,8 +249,11 b' No [acl.allow]/[acl.deny]'
240 249 acl: path access granted: "f9cafe1212c8"
241 250 acl: branch access granted: "911600dab2ae" on branch "default"
242 251 acl: path access granted: "911600dab2ae"
252 listing keys for "phases"
253 listing keys for "namespaces"
243 254 updating the branch cache
244 255 checking for updated bookmarks
256 listing keys for "bookmarks"
245 257 repository tip rolled back to revision 0 (undo push)
246 258 0:6675d58eff77
247 259
@@ -263,6 +275,7 b' Empty [acl.allow]'
263 275 searching for changes
264 276 all remote heads known locally
265 277 invalidating branch cache (tip differs)
278 listing keys for "bookmarks"
266 279 3 changesets found
267 280 list of changesets:
268 281 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -328,6 +341,7 b' fred is allowed inside foo/'
328 341 query 1; heads
329 342 searching for changes
330 343 all remote heads known locally
344 listing keys for "bookmarks"
331 345 3 changesets found
332 346 list of changesets:
333 347 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -398,6 +412,7 b' Empty [acl.deny]'
398 412 query 1; heads
399 413 searching for changes
400 414 all remote heads known locally
415 listing keys for "bookmarks"
401 416 3 changesets found
402 417 list of changesets:
403 418 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -465,6 +480,7 b' fred is allowed inside foo/, but not foo'
465 480 query 1; heads
466 481 searching for changes
467 482 all remote heads known locally
483 listing keys for "bookmarks"
468 484 3 changesets found
469 485 list of changesets:
470 486 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -537,6 +553,7 b' fred is allowed inside foo/, but not foo'
537 553 query 1; heads
538 554 searching for changes
539 555 all remote heads known locally
556 listing keys for "bookmarks"
540 557 3 changesets found
541 558 list of changesets:
542 559 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -606,6 +623,7 b' fred is allowed inside foo/, but not foo'
606 623 query 1; heads
607 624 searching for changes
608 625 all remote heads known locally
626 listing keys for "bookmarks"
609 627 3 changesets found
610 628 list of changesets:
611 629 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -677,6 +695,7 b' barney is allowed everywhere'
677 695 query 1; heads
678 696 searching for changes
679 697 all remote heads known locally
698 listing keys for "bookmarks"
680 699 3 changesets found
681 700 list of changesets:
682 701 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -722,8 +741,11 b' barney is allowed everywhere'
722 741 acl: path access granted: "f9cafe1212c8"
723 742 acl: branch access granted: "911600dab2ae" on branch "default"
724 743 acl: path access granted: "911600dab2ae"
744 listing keys for "phases"
745 listing keys for "namespaces"
725 746 updating the branch cache
726 747 checking for updated bookmarks
748 listing keys for "bookmarks"
727 749 repository tip rolled back to revision 0 (undo push)
728 750 0:6675d58eff77
729 751
@@ -752,6 +774,7 b' wilma can change files with a .txt exten'
752 774 searching for changes
753 775 all remote heads known locally
754 776 invalidating branch cache (tip differs)
777 listing keys for "bookmarks"
755 778 3 changesets found
756 779 list of changesets:
757 780 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -830,6 +853,7 b' file specified by acl.config does not ex'
830 853 query 1; heads
831 854 searching for changes
832 855 all remote heads known locally
856 listing keys for "bookmarks"
833 857 3 changesets found
834 858 list of changesets:
835 859 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -903,6 +927,7 b' betty is allowed inside foo/ by a acl.co'
903 927 query 1; heads
904 928 searching for changes
905 929 all remote heads known locally
930 listing keys for "bookmarks"
906 931 3 changesets found
907 932 list of changesets:
908 933 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -987,6 +1012,7 b' acl.config can set only [acl.allow]/[acl'
987 1012 query 1; heads
988 1013 searching for changes
989 1014 all remote heads known locally
1015 listing keys for "bookmarks"
990 1016 3 changesets found
991 1017 list of changesets:
992 1018 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -1032,8 +1058,11 b' acl.config can set only [acl.allow]/[acl'
1032 1058 acl: path access granted: "f9cafe1212c8"
1033 1059 acl: branch access granted: "911600dab2ae" on branch "default"
1034 1060 acl: path access granted: "911600dab2ae"
1061 listing keys for "phases"
1062 listing keys for "namespaces"
1035 1063 updating the branch cache
1036 1064 checking for updated bookmarks
1065 listing keys for "bookmarks"
1037 1066 repository tip rolled back to revision 0 (undo push)
1038 1067 0:6675d58eff77
1039 1068
@@ -1063,6 +1092,7 b' fred is always allowed'
1063 1092 searching for changes
1064 1093 all remote heads known locally
1065 1094 invalidating branch cache (tip differs)
1095 listing keys for "bookmarks"
1066 1096 3 changesets found
1067 1097 list of changesets:
1068 1098 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -1108,8 +1138,11 b' fred is always allowed'
1108 1138 acl: path access granted: "f9cafe1212c8"
1109 1139 acl: branch access granted: "911600dab2ae" on branch "default"
1110 1140 acl: path access granted: "911600dab2ae"
1141 listing keys for "phases"
1142 listing keys for "namespaces"
1111 1143 updating the branch cache
1112 1144 checking for updated bookmarks
1145 listing keys for "bookmarks"
1113 1146 repository tip rolled back to revision 0 (undo push)
1114 1147 0:6675d58eff77
1115 1148
@@ -1135,6 +1168,7 b' no one is allowed inside foo/Bar/'
1135 1168 searching for changes
1136 1169 all remote heads known locally
1137 1170 invalidating branch cache (tip differs)
1171 listing keys for "bookmarks"
1138 1172 3 changesets found
1139 1173 list of changesets:
1140 1174 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -1209,6 +1243,7 b' OS-level groups'
1209 1243 query 1; heads
1210 1244 searching for changes
1211 1245 all remote heads known locally
1246 listing keys for "bookmarks"
1212 1247 3 changesets found
1213 1248 list of changesets:
1214 1249 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -1255,8 +1290,11 b' OS-level groups'
1255 1290 acl: path access granted: "f9cafe1212c8"
1256 1291 acl: branch access granted: "911600dab2ae" on branch "default"
1257 1292 acl: path access granted: "911600dab2ae"
1293 listing keys for "phases"
1294 listing keys for "namespaces"
1258 1295 updating the branch cache
1259 1296 checking for updated bookmarks
1297 listing keys for "bookmarks"
1260 1298 repository tip rolled back to revision 0 (undo push)
1261 1299 0:6675d58eff77
1262 1300
@@ -1282,6 +1320,7 b' OS-level groups'
1282 1320 searching for changes
1283 1321 all remote heads known locally
1284 1322 invalidating branch cache (tip differs)
1323 listing keys for "bookmarks"
1285 1324 3 changesets found
1286 1325 list of changesets:
1287 1326 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -1395,6 +1434,7 b' No branch acls specified'
1395 1434 query 1; heads
1396 1435 searching for changes
1397 1436 all remote heads known locally
1437 listing keys for "bookmarks"
1398 1438 4 changesets found
1399 1439 list of changesets:
1400 1440 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -1451,8 +1491,11 b' No branch acls specified'
1451 1491 acl: path access granted: "911600dab2ae"
1452 1492 acl: branch access granted: "e8fc755d4d82" on branch "foobar"
1453 1493 acl: path access granted: "e8fc755d4d82"
1494 listing keys for "phases"
1495 listing keys for "namespaces"
1454 1496 updating the branch cache
1455 1497 checking for updated bookmarks
1498 listing keys for "bookmarks"
1456 1499 repository tip rolled back to revision 2 (undo push)
1457 1500 2:fb35475503ef
1458 1501
@@ -1475,6 +1518,7 b' Branch acl deny test'
1475 1518 searching for changes
1476 1519 all remote heads known locally
1477 1520 invalidating branch cache (tip differs)
1521 listing keys for "bookmarks"
1478 1522 4 changesets found
1479 1523 list of changesets:
1480 1524 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -1553,6 +1597,7 b' Branch acl empty allow test'
1553 1597 query 1; heads
1554 1598 searching for changes
1555 1599 all remote heads known locally
1600 listing keys for "bookmarks"
1556 1601 4 changesets found
1557 1602 list of changesets:
1558 1603 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -1627,6 +1672,7 b' Branch acl allow other'
1627 1672 query 1; heads
1628 1673 searching for changes
1629 1674 all remote heads known locally
1675 listing keys for "bookmarks"
1630 1676 4 changesets found
1631 1677 list of changesets:
1632 1678 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -1695,6 +1741,7 b' Branch acl allow other'
1695 1741 query 1; heads
1696 1742 searching for changes
1697 1743 all remote heads known locally
1744 listing keys for "bookmarks"
1698 1745 4 changesets found
1699 1746 list of changesets:
1700 1747 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -1751,8 +1798,11 b' Branch acl allow other'
1751 1798 acl: path access granted: "911600dab2ae"
1752 1799 acl: branch access granted: "e8fc755d4d82" on branch "foobar"
1753 1800 acl: path access granted: "e8fc755d4d82"
1801 listing keys for "phases"
1802 listing keys for "namespaces"
1754 1803 updating the branch cache
1755 1804 checking for updated bookmarks
1805 listing keys for "bookmarks"
1756 1806 repository tip rolled back to revision 2 (undo push)
1757 1807 2:fb35475503ef
1758 1808
@@ -1780,6 +1830,7 b' push foobar into the remote'
1780 1830 searching for changes
1781 1831 all remote heads known locally
1782 1832 invalidating branch cache (tip differs)
1833 listing keys for "bookmarks"
1783 1834 4 changesets found
1784 1835 list of changesets:
1785 1836 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -1836,8 +1887,11 b' push foobar into the remote'
1836 1887 acl: path access granted: "911600dab2ae"
1837 1888 acl: branch access granted: "e8fc755d4d82" on branch "foobar"
1838 1889 acl: path access granted: "e8fc755d4d82"
1890 listing keys for "phases"
1891 listing keys for "namespaces"
1839 1892 updating the branch cache
1840 1893 checking for updated bookmarks
1894 listing keys for "bookmarks"
1841 1895 repository tip rolled back to revision 2 (undo push)
1842 1896 2:fb35475503ef
1843 1897
@@ -1864,6 +1918,7 b' Branch acl conflicting deny'
1864 1918 searching for changes
1865 1919 all remote heads known locally
1866 1920 invalidating branch cache (tip differs)
1921 listing keys for "bookmarks"
1867 1922 4 changesets found
1868 1923 list of changesets:
1869 1924 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -1937,6 +1992,7 b" User 'astro' must not be denied"
1937 1992 query 1; heads
1938 1993 searching for changes
1939 1994 all remote heads known locally
1995 listing keys for "bookmarks"
1940 1996 4 changesets found
1941 1997 list of changesets:
1942 1998 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -1993,8 +2049,11 b" User 'astro' must not be denied"
1993 2049 acl: path access granted: "911600dab2ae"
1994 2050 acl: branch access granted: "e8fc755d4d82" on branch "foobar"
1995 2051 acl: path access granted: "e8fc755d4d82"
2052 listing keys for "phases"
2053 listing keys for "namespaces"
1996 2054 updating the branch cache
1997 2055 checking for updated bookmarks
2056 listing keys for "bookmarks"
1998 2057 repository tip rolled back to revision 2 (undo push)
1999 2058 2:fb35475503ef
2000 2059
@@ -2015,6 +2074,7 b' Non-astro users must be denied'
2015 2074 searching for changes
2016 2075 all remote heads known locally
2017 2076 invalidating branch cache (tip differs)
2077 listing keys for "bookmarks"
2018 2078 4 changesets found
2019 2079 list of changesets:
2020 2080 ef1ea85a6374b77d6da9dcda9541f498f2d17df7
@@ -51,6 +51,7 b' No update, with debug option:'
51 51 #if hardlink
52 52 $ hg --debug clone -U . ../c
53 53 linked 8 files
54 listing keys for "bookmarks"
54 55 #else
55 56 $ hg --debug clone -U . ../c
56 57 copied 8 files
@@ -57,6 +57,7 b' Create hardlinked clone r2:'
57 57
58 58 $ hg clone -U --debug r1 r2
59 59 linked 7 files
60 listing keys for "bookmarks"
60 61
61 62 Create non-hardlinked clone r3:
62 63
@@ -37,6 +37,7 b''
37 37 searching: 2 queries
38 38 query 2; still undecided: 1, sample size is: 1
39 39 2 total queries
40 listing keys for "bookmarks"
40 41 new remote heads on branch 'default'
41 42 new remote head 1e108cc5548c
42 43 abort: push creates new remote head 1e108cc5548c!
General Comments 0
You need to be logged in to leave comments. Login now