##// END OF EJS Templates
push: move bookmark discovery with other discovery steps...
Pierre-Yves David -
r22239:0688010e default
parent child Browse files
Show More
@@ -83,6 +83,8 b' class pushoperation(object):'
83 self.fallbackoutdatedphases = None
83 self.fallbackoutdatedphases = None
84 # outgoing obsmarkers
84 # outgoing obsmarkers
85 self.outobsmarkers = set()
85 self.outobsmarkers = set()
86 # outgoing bookmarks
87 self.outbookmarks = []
86
88
87 @util.propertycache
89 @util.propertycache
88 def futureheads(self):
90 def futureheads(self):
@@ -280,6 +282,24 b' def _pushdiscoveryphase(pushop):'
280 def _pushdiscoveryobsmarkers(pushop):
282 def _pushdiscoveryobsmarkers(pushop):
281 pushop.outobsmarkers = pushop.repo.obsstore
283 pushop.outobsmarkers = pushop.repo.obsstore
282
284
285 @pushdiscovery('bookmarks')
286 def _pushdiscoverybookmarks(pushop):
287 ui = pushop.ui
288 repo = pushop.repo.unfiltered()
289 remote = pushop.remote
290 ui.debug("checking for updated bookmarks\n")
291 ancestors = ()
292 if pushop.revs:
293 revnums = map(repo.changelog.rev, pushop.revs)
294 ancestors = repo.changelog.ancestors(revnums, inclusive=True)
295 remotebookmark = remote.listkeys('bookmarks')
296
297 comp = bookmarks.compare(repo, repo._bookmarks, remotebookmark, srchex=hex)
298 (addsrc, adddst, advsrc, advdst, diverge, differ, invalid) = comp
299 for b, scid, dcid in advsrc:
300 if not ancestors or repo[scid].rev() in ancestors:
301 pushop.outbookmarks.append((b, dcid, scid))
302
283 def _pushcheckoutgoing(pushop):
303 def _pushcheckoutgoing(pushop):
284 outgoing = pushop.outgoing
304 outgoing = pushop.outgoing
285 unfi = pushop.repo.unfiltered()
305 unfi = pushop.repo.unfiltered()
@@ -616,20 +636,9 b' def _pushbookmark(pushop):'
616 if pushop.ret == 0:
636 if pushop.ret == 0:
617 return
637 return
618 ui = pushop.ui
638 ui = pushop.ui
619 repo = pushop.repo.unfiltered()
620 remote = pushop.remote
639 remote = pushop.remote
621 ui.debug("checking for updated bookmarks\n")
640 for b, old, new in pushop.outbookmarks:
622 ancestors = ()
641 if remote.pushkey('bookmarks', b, old, new):
623 if pushop.revs:
624 revnums = map(repo.changelog.rev, pushop.revs)
625 ancestors = repo.changelog.ancestors(revnums, inclusive=True)
626 remotebookmark = remote.listkeys('bookmarks')
627 comp = bookmarks.compare(repo, repo._bookmarks, remotebookmark, srchex=hex)
628 (addsrc, adddst, advsrc, advdst, diverge, differ, invalid) = comp
629 for b, scid, dcid in advsrc:
630 if ancestors and repo[scid].rev() not in ancestors:
631 continue
632 if remote.pushkey('bookmarks', b, dcid, scid):
633 ui.status(_("updating bookmark %s\n") % b)
642 ui.status(_("updating bookmark %s\n") % b)
634 else:
643 else:
635 ui.warn(_('updating bookmark %s failed!\n') % b)
644 ui.warn(_('updating bookmark %s failed!\n') % b)
@@ -83,6 +83,8 b' Extension disabled for lack of a hook'
83 searching for changes
83 searching for changes
84 all remote heads known locally
84 all remote heads known locally
85 listing keys for "phases"
85 listing keys for "phases"
86 checking for updated bookmarks
87 listing keys for "bookmarks"
86 listing keys for "bookmarks"
88 listing keys for "bookmarks"
87 3 changesets found
89 3 changesets found
88 list of changesets:
90 list of changesets:
@@ -120,8 +122,6 b' Extension disabled for lack of a hook'
120 updating the branch cache
122 updating the branch cache
121 listing keys for "phases"
123 listing keys for "phases"
122 try to push obsolete markers to remote
124 try to push obsolete markers to remote
123 checking for updated bookmarks
124 listing keys for "bookmarks"
125 repository tip rolled back to revision 0 (undo push)
125 repository tip rolled back to revision 0 (undo push)
126 0:6675d58eff77
126 0:6675d58eff77
127
127
@@ -142,6 +142,8 b' Extension disabled for lack of acl.sourc'
142 searching for changes
142 searching for changes
143 all remote heads known locally
143 all remote heads known locally
144 listing keys for "phases"
144 listing keys for "phases"
145 checking for updated bookmarks
146 listing keys for "bookmarks"
145 invalid branchheads cache (served): tip differs
147 invalid branchheads cache (served): tip differs
146 listing keys for "bookmarks"
148 listing keys for "bookmarks"
147 3 changesets found
149 3 changesets found
@@ -182,8 +184,6 b' Extension disabled for lack of acl.sourc'
182 updating the branch cache
184 updating the branch cache
183 listing keys for "phases"
185 listing keys for "phases"
184 try to push obsolete markers to remote
186 try to push obsolete markers to remote
185 checking for updated bookmarks
186 listing keys for "bookmarks"
187 repository tip rolled back to revision 0 (undo push)
187 repository tip rolled back to revision 0 (undo push)
188 0:6675d58eff77
188 0:6675d58eff77
189
189
@@ -205,6 +205,8 b' No [acl.allow]/[acl.deny]'
205 searching for changes
205 searching for changes
206 all remote heads known locally
206 all remote heads known locally
207 listing keys for "phases"
207 listing keys for "phases"
208 checking for updated bookmarks
209 listing keys for "bookmarks"
208 invalid branchheads cache (served): tip differs
210 invalid branchheads cache (served): tip differs
209 listing keys for "bookmarks"
211 listing keys for "bookmarks"
210 3 changesets found
212 3 changesets found
@@ -255,8 +257,6 b' No [acl.allow]/[acl.deny]'
255 updating the branch cache
257 updating the branch cache
256 listing keys for "phases"
258 listing keys for "phases"
257 try to push obsolete markers to remote
259 try to push obsolete markers to remote
258 checking for updated bookmarks
259 listing keys for "bookmarks"
260 repository tip rolled back to revision 0 (undo push)
260 repository tip rolled back to revision 0 (undo push)
261 0:6675d58eff77
261 0:6675d58eff77
262
262
@@ -278,6 +278,8 b' Empty [acl.allow]'
278 searching for changes
278 searching for changes
279 all remote heads known locally
279 all remote heads known locally
280 listing keys for "phases"
280 listing keys for "phases"
281 checking for updated bookmarks
282 listing keys for "bookmarks"
281 invalid branchheads cache (served): tip differs
283 invalid branchheads cache (served): tip differs
282 listing keys for "bookmarks"
284 listing keys for "bookmarks"
283 3 changesets found
285 3 changesets found
@@ -346,6 +348,8 b' fred is allowed inside foo/'
346 searching for changes
348 searching for changes
347 all remote heads known locally
349 all remote heads known locally
348 listing keys for "phases"
350 listing keys for "phases"
351 checking for updated bookmarks
352 listing keys for "bookmarks"
349 invalid branchheads cache (served): tip differs
353 invalid branchheads cache (served): tip differs
350 listing keys for "bookmarks"
354 listing keys for "bookmarks"
351 3 changesets found
355 3 changesets found
@@ -419,6 +423,8 b' Empty [acl.deny]'
419 searching for changes
423 searching for changes
420 all remote heads known locally
424 all remote heads known locally
421 listing keys for "phases"
425 listing keys for "phases"
426 checking for updated bookmarks
427 listing keys for "bookmarks"
422 invalid branchheads cache (served): tip differs
428 invalid branchheads cache (served): tip differs
423 listing keys for "bookmarks"
429 listing keys for "bookmarks"
424 3 changesets found
430 3 changesets found
@@ -489,6 +495,8 b' fred is allowed inside foo/, but not foo'
489 searching for changes
495 searching for changes
490 all remote heads known locally
496 all remote heads known locally
491 listing keys for "phases"
497 listing keys for "phases"
498 checking for updated bookmarks
499 listing keys for "bookmarks"
492 invalid branchheads cache (served): tip differs
500 invalid branchheads cache (served): tip differs
493 listing keys for "bookmarks"
501 listing keys for "bookmarks"
494 3 changesets found
502 3 changesets found
@@ -564,6 +572,8 b' fred is allowed inside foo/, but not foo'
564 searching for changes
572 searching for changes
565 all remote heads known locally
573 all remote heads known locally
566 listing keys for "phases"
574 listing keys for "phases"
575 checking for updated bookmarks
576 listing keys for "bookmarks"
567 invalid branchheads cache (served): tip differs
577 invalid branchheads cache (served): tip differs
568 listing keys for "bookmarks"
578 listing keys for "bookmarks"
569 3 changesets found
579 3 changesets found
@@ -636,6 +646,8 b' fred is allowed inside foo/, but not foo'
636 searching for changes
646 searching for changes
637 all remote heads known locally
647 all remote heads known locally
638 listing keys for "phases"
648 listing keys for "phases"
649 checking for updated bookmarks
650 listing keys for "bookmarks"
639 invalid branchheads cache (served): tip differs
651 invalid branchheads cache (served): tip differs
640 listing keys for "bookmarks"
652 listing keys for "bookmarks"
641 3 changesets found
653 3 changesets found
@@ -710,6 +722,8 b' barney is allowed everywhere'
710 searching for changes
722 searching for changes
711 all remote heads known locally
723 all remote heads known locally
712 listing keys for "phases"
724 listing keys for "phases"
725 checking for updated bookmarks
726 listing keys for "bookmarks"
713 invalid branchheads cache (served): tip differs
727 invalid branchheads cache (served): tip differs
714 listing keys for "bookmarks"
728 listing keys for "bookmarks"
715 3 changesets found
729 3 changesets found
@@ -760,8 +774,6 b' barney is allowed everywhere'
760 updating the branch cache
774 updating the branch cache
761 listing keys for "phases"
775 listing keys for "phases"
762 try to push obsolete markers to remote
776 try to push obsolete markers to remote
763 checking for updated bookmarks
764 listing keys for "bookmarks"
765 repository tip rolled back to revision 0 (undo push)
777 repository tip rolled back to revision 0 (undo push)
766 0:6675d58eff77
778 0:6675d58eff77
767
779
@@ -790,6 +802,8 b' wilma can change files with a .txt exten'
790 searching for changes
802 searching for changes
791 all remote heads known locally
803 all remote heads known locally
792 listing keys for "phases"
804 listing keys for "phases"
805 checking for updated bookmarks
806 listing keys for "bookmarks"
793 invalid branchheads cache (served): tip differs
807 invalid branchheads cache (served): tip differs
794 listing keys for "bookmarks"
808 listing keys for "bookmarks"
795 3 changesets found
809 3 changesets found
@@ -871,6 +885,8 b' file specified by acl.config does not ex'
871 searching for changes
885 searching for changes
872 all remote heads known locally
886 all remote heads known locally
873 listing keys for "phases"
887 listing keys for "phases"
888 checking for updated bookmarks
889 listing keys for "bookmarks"
874 invalid branchheads cache (served): tip differs
890 invalid branchheads cache (served): tip differs
875 listing keys for "bookmarks"
891 listing keys for "bookmarks"
876 3 changesets found
892 3 changesets found
@@ -908,10 +924,10 b' file specified by acl.config does not ex'
908 added 3 changesets with 3 changes to 3 files
924 added 3 changesets with 3 changes to 3 files
909 calling hook pretxnchangegroup.acl: hgext.acl.hook
925 calling hook pretxnchangegroup.acl: hgext.acl.hook
910 acl: checking access for user "barney"
926 acl: checking access for user "barney"
911 error: pretxnchangegroup.acl hook raised an exception: [Errno *] *: '../acl.config' (glob)
927 error: pretxnchangegroup.acl hook raised an exception: [Errno 2] No such file or directory: '../acl.config'
912 transaction abort!
928 transaction abort!
913 rollback completed
929 rollback completed
914 abort: *: ../acl.config (glob)
930 abort: No such file or directory: ../acl.config
915 no rollback information available
931 no rollback information available
916 0:6675d58eff77
932 0:6675d58eff77
917
933
@@ -947,6 +963,8 b' betty is allowed inside foo/ by a acl.co'
947 searching for changes
963 searching for changes
948 all remote heads known locally
964 all remote heads known locally
949 listing keys for "phases"
965 listing keys for "phases"
966 checking for updated bookmarks
967 listing keys for "bookmarks"
950 invalid branchheads cache (served): tip differs
968 invalid branchheads cache (served): tip differs
951 listing keys for "bookmarks"
969 listing keys for "bookmarks"
952 3 changesets found
970 3 changesets found
@@ -1034,6 +1052,8 b' acl.config can set only [acl.allow]/[acl'
1034 searching for changes
1052 searching for changes
1035 all remote heads known locally
1053 all remote heads known locally
1036 listing keys for "phases"
1054 listing keys for "phases"
1055 checking for updated bookmarks
1056 listing keys for "bookmarks"
1037 invalid branchheads cache (served): tip differs
1057 invalid branchheads cache (served): tip differs
1038 listing keys for "bookmarks"
1058 listing keys for "bookmarks"
1039 3 changesets found
1059 3 changesets found
@@ -1084,8 +1104,6 b' acl.config can set only [acl.allow]/[acl'
1084 updating the branch cache
1104 updating the branch cache
1085 listing keys for "phases"
1105 listing keys for "phases"
1086 try to push obsolete markers to remote
1106 try to push obsolete markers to remote
1087 checking for updated bookmarks
1088 listing keys for "bookmarks"
1089 repository tip rolled back to revision 0 (undo push)
1107 repository tip rolled back to revision 0 (undo push)
1090 0:6675d58eff77
1108 0:6675d58eff77
1091
1109
@@ -1115,6 +1133,8 b' fred is always allowed'
1115 searching for changes
1133 searching for changes
1116 all remote heads known locally
1134 all remote heads known locally
1117 listing keys for "phases"
1135 listing keys for "phases"
1136 checking for updated bookmarks
1137 listing keys for "bookmarks"
1118 invalid branchheads cache (served): tip differs
1138 invalid branchheads cache (served): tip differs
1119 listing keys for "bookmarks"
1139 listing keys for "bookmarks"
1120 3 changesets found
1140 3 changesets found
@@ -1165,8 +1185,6 b' fred is always allowed'
1165 updating the branch cache
1185 updating the branch cache
1166 listing keys for "phases"
1186 listing keys for "phases"
1167 try to push obsolete markers to remote
1187 try to push obsolete markers to remote
1168 checking for updated bookmarks
1169 listing keys for "bookmarks"
1170 repository tip rolled back to revision 0 (undo push)
1188 repository tip rolled back to revision 0 (undo push)
1171 0:6675d58eff77
1189 0:6675d58eff77
1172
1190
@@ -1192,6 +1210,8 b' no one is allowed inside foo/Bar/'
1192 searching for changes
1210 searching for changes
1193 all remote heads known locally
1211 all remote heads known locally
1194 listing keys for "phases"
1212 listing keys for "phases"
1213 checking for updated bookmarks
1214 listing keys for "bookmarks"
1195 invalid branchheads cache (served): tip differs
1215 invalid branchheads cache (served): tip differs
1196 listing keys for "bookmarks"
1216 listing keys for "bookmarks"
1197 3 changesets found
1217 3 changesets found
@@ -1269,6 +1289,8 b' OS-level groups'
1269 searching for changes
1289 searching for changes
1270 all remote heads known locally
1290 all remote heads known locally
1271 listing keys for "phases"
1291 listing keys for "phases"
1292 checking for updated bookmarks
1293 listing keys for "bookmarks"
1272 invalid branchheads cache (served): tip differs
1294 invalid branchheads cache (served): tip differs
1273 listing keys for "bookmarks"
1295 listing keys for "bookmarks"
1274 3 changesets found
1296 3 changesets found
@@ -1320,8 +1342,6 b' OS-level groups'
1320 updating the branch cache
1342 updating the branch cache
1321 listing keys for "phases"
1343 listing keys for "phases"
1322 try to push obsolete markers to remote
1344 try to push obsolete markers to remote
1323 checking for updated bookmarks
1324 listing keys for "bookmarks"
1325 repository tip rolled back to revision 0 (undo push)
1345 repository tip rolled back to revision 0 (undo push)
1326 0:6675d58eff77
1346 0:6675d58eff77
1327
1347
@@ -1347,6 +1367,8 b' OS-level groups'
1347 searching for changes
1367 searching for changes
1348 all remote heads known locally
1368 all remote heads known locally
1349 listing keys for "phases"
1369 listing keys for "phases"
1370 checking for updated bookmarks
1371 listing keys for "bookmarks"
1350 invalid branchheads cache (served): tip differs
1372 invalid branchheads cache (served): tip differs
1351 listing keys for "bookmarks"
1373 listing keys for "bookmarks"
1352 3 changesets found
1374 3 changesets found
@@ -1463,6 +1485,8 b' No branch acls specified'
1463 searching for changes
1485 searching for changes
1464 all remote heads known locally
1486 all remote heads known locally
1465 listing keys for "phases"
1487 listing keys for "phases"
1488 checking for updated bookmarks
1489 listing keys for "bookmarks"
1466 listing keys for "bookmarks"
1490 listing keys for "bookmarks"
1467 4 changesets found
1491 4 changesets found
1468 list of changesets:
1492 list of changesets:
@@ -1523,8 +1547,6 b' No branch acls specified'
1523 updating the branch cache
1547 updating the branch cache
1524 listing keys for "phases"
1548 listing keys for "phases"
1525 try to push obsolete markers to remote
1549 try to push obsolete markers to remote
1526 checking for updated bookmarks
1527 listing keys for "bookmarks"
1528 repository tip rolled back to revision 2 (undo push)
1550 repository tip rolled back to revision 2 (undo push)
1529 2:fb35475503ef
1551 2:fb35475503ef
1530
1552
@@ -1547,6 +1569,8 b' Branch acl deny test'
1547 searching for changes
1569 searching for changes
1548 all remote heads known locally
1570 all remote heads known locally
1549 listing keys for "phases"
1571 listing keys for "phases"
1572 checking for updated bookmarks
1573 listing keys for "bookmarks"
1550 listing keys for "bookmarks"
1574 listing keys for "bookmarks"
1551 4 changesets found
1575 4 changesets found
1552 list of changesets:
1576 list of changesets:
@@ -1627,6 +1651,8 b' Branch acl empty allow test'
1627 searching for changes
1651 searching for changes
1628 all remote heads known locally
1652 all remote heads known locally
1629 listing keys for "phases"
1653 listing keys for "phases"
1654 checking for updated bookmarks
1655 listing keys for "bookmarks"
1630 listing keys for "bookmarks"
1656 listing keys for "bookmarks"
1631 4 changesets found
1657 4 changesets found
1632 list of changesets:
1658 list of changesets:
@@ -1703,6 +1729,8 b' Branch acl allow other'
1703 searching for changes
1729 searching for changes
1704 all remote heads known locally
1730 all remote heads known locally
1705 listing keys for "phases"
1731 listing keys for "phases"
1732 checking for updated bookmarks
1733 listing keys for "bookmarks"
1706 listing keys for "bookmarks"
1734 listing keys for "bookmarks"
1707 4 changesets found
1735 4 changesets found
1708 list of changesets:
1736 list of changesets:
@@ -1773,6 +1801,8 b' Branch acl allow other'
1773 searching for changes
1801 searching for changes
1774 all remote heads known locally
1802 all remote heads known locally
1775 listing keys for "phases"
1803 listing keys for "phases"
1804 checking for updated bookmarks
1805 listing keys for "bookmarks"
1776 listing keys for "bookmarks"
1806 listing keys for "bookmarks"
1777 4 changesets found
1807 4 changesets found
1778 list of changesets:
1808 list of changesets:
@@ -1833,8 +1863,6 b' Branch acl allow other'
1833 updating the branch cache
1863 updating the branch cache
1834 listing keys for "phases"
1864 listing keys for "phases"
1835 try to push obsolete markers to remote
1865 try to push obsolete markers to remote
1836 checking for updated bookmarks
1837 listing keys for "bookmarks"
1838 repository tip rolled back to revision 2 (undo push)
1866 repository tip rolled back to revision 2 (undo push)
1839 2:fb35475503ef
1867 2:fb35475503ef
1840
1868
@@ -1862,6 +1890,8 b' push foobar into the remote'
1862 searching for changes
1890 searching for changes
1863 all remote heads known locally
1891 all remote heads known locally
1864 listing keys for "phases"
1892 listing keys for "phases"
1893 checking for updated bookmarks
1894 listing keys for "bookmarks"
1865 listing keys for "bookmarks"
1895 listing keys for "bookmarks"
1866 4 changesets found
1896 4 changesets found
1867 list of changesets:
1897 list of changesets:
@@ -1922,8 +1952,6 b' push foobar into the remote'
1922 updating the branch cache
1952 updating the branch cache
1923 listing keys for "phases"
1953 listing keys for "phases"
1924 try to push obsolete markers to remote
1954 try to push obsolete markers to remote
1925 checking for updated bookmarks
1926 listing keys for "bookmarks"
1927 repository tip rolled back to revision 2 (undo push)
1955 repository tip rolled back to revision 2 (undo push)
1928 2:fb35475503ef
1956 2:fb35475503ef
1929
1957
@@ -1950,6 +1978,8 b' Branch acl conflicting deny'
1950 searching for changes
1978 searching for changes
1951 all remote heads known locally
1979 all remote heads known locally
1952 listing keys for "phases"
1980 listing keys for "phases"
1981 checking for updated bookmarks
1982 listing keys for "bookmarks"
1953 listing keys for "bookmarks"
1983 listing keys for "bookmarks"
1954 4 changesets found
1984 4 changesets found
1955 list of changesets:
1985 list of changesets:
@@ -2025,6 +2055,8 b" User 'astro' must not be denied"
2025 searching for changes
2055 searching for changes
2026 all remote heads known locally
2056 all remote heads known locally
2027 listing keys for "phases"
2057 listing keys for "phases"
2058 checking for updated bookmarks
2059 listing keys for "bookmarks"
2028 listing keys for "bookmarks"
2060 listing keys for "bookmarks"
2029 4 changesets found
2061 4 changesets found
2030 list of changesets:
2062 list of changesets:
@@ -2085,8 +2117,6 b" User 'astro' must not be denied"
2085 updating the branch cache
2117 updating the branch cache
2086 listing keys for "phases"
2118 listing keys for "phases"
2087 try to push obsolete markers to remote
2119 try to push obsolete markers to remote
2088 checking for updated bookmarks
2089 listing keys for "bookmarks"
2090 repository tip rolled back to revision 2 (undo push)
2120 repository tip rolled back to revision 2 (undo push)
2091 2:fb35475503ef
2121 2:fb35475503ef
2092
2122
@@ -2107,6 +2137,8 b' Non-astro users must be denied'
2107 searching for changes
2137 searching for changes
2108 all remote heads known locally
2138 all remote heads known locally
2109 listing keys for "phases"
2139 listing keys for "phases"
2140 checking for updated bookmarks
2141 listing keys for "bookmarks"
2110 listing keys for "bookmarks"
2142 listing keys for "bookmarks"
2111 4 changesets found
2143 4 changesets found
2112 list of changesets:
2144 list of changesets:
@@ -211,10 +211,10 b' test that prepushkey can prevent incomin'
211 pushing to ../a
211 pushing to ../a
212 searching for changes
212 searching for changes
213 listkeys hook: HG_NAMESPACE=phases HG_VALUES={'cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b': '1', 'publishing': 'True'}
213 listkeys hook: HG_NAMESPACE=phases HG_VALUES={'cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b': '1', 'publishing': 'True'}
214 listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'}
214 no changes found
215 no changes found
215 listkeys hook: HG_NAMESPACE=phases HG_VALUES={'cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b': '1', 'publishing': 'True'}
216 listkeys hook: HG_NAMESPACE=phases HG_VALUES={'cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b': '1', 'publishing': 'True'}
216 listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'}
217 listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'}
217 listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'}
218 exporting bookmark baz
218 exporting bookmark baz
219 prepushkey.forbid hook: HG_KEY=baz HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000
219 prepushkey.forbid hook: HG_KEY=baz HG_NAMESPACE=bookmarks HG_NEW=0000000000000000000000000000000000000000
220 abort: prepushkey hook exited with status 1
220 abort: prepushkey hook exited with status 1
@@ -263,12 +263,12 b' test http authentication'
263 "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872
263 "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D7f4e523d01f2cc3765ac8934da3d14db775ff872
264 "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=phases
264 "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=phases
265 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases
265 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases
266 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks
266 "GET /?cmd=branchmap HTTP/1.1" 200 -
267 "GET /?cmd=branchmap HTTP/1.1" 200 -
267 "GET /?cmd=branchmap HTTP/1.1" 200 -
268 "GET /?cmd=branchmap HTTP/1.1" 200 -
268 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks
269 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks
269 "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=686173686564+5eb5abfefeea63c80dd7553bcc3783f37e0c5524
270 "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=686173686564+5eb5abfefeea63c80dd7553bcc3783f37e0c5524
270 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases
271 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases
271 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks
272
272
273 #endif
273 #endif
274 $ cd ..
274 $ cd ..
@@ -326,9 +326,9 b' Check obsolete keys are exchanged only i'
326 $ hg --config extensions.debugkeys=debugkeys.py -R empty push tmpd
326 $ hg --config extensions.debugkeys=debugkeys.py -R empty push tmpd
327 pushing to tmpd
327 pushing to tmpd
328 listkeys phases
328 listkeys phases
329 listkeys bookmarks
329 no changes found
330 no changes found
330 listkeys phases
331 listkeys phases
331 listkeys bookmarks
332 [1]
332 [1]
333
333
334 clone support
334 clone support
@@ -36,6 +36,8 b''
36 query 2; still undecided: 1, sample size is: 1
36 query 2; still undecided: 1, sample size is: 1
37 2 total queries
37 2 total queries
38 listing keys for "phases"
38 listing keys for "phases"
39 checking for updated bookmarks
40 listing keys for "bookmarks"
39 listing keys for "bookmarks"
41 listing keys for "bookmarks"
40 remote has heads on branch 'default' that are not known locally: 1c9246a22a0a
42 remote has heads on branch 'default' that are not known locally: 1c9246a22a0a
41 new remote heads on branch 'default':
43 new remote heads on branch 'default':
@@ -523,12 +523,12 b' Both have new stuff in existing named br'
523 "GET /?cmd=capabilities HTTP/1.1" 200 -
523 "GET /?cmd=capabilities HTTP/1.1" 200 -
524 "GET /?cmd=heads HTTP/1.1" 200 -
524 "GET /?cmd=heads HTTP/1.1" 200 -
525 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases
525 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases
526 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks
526 "GET /?cmd=branchmap HTTP/1.1" 200 -
527 "GET /?cmd=branchmap HTTP/1.1" 200 -
527 "GET /?cmd=branchmap HTTP/1.1" 200 -
528 "GET /?cmd=branchmap HTTP/1.1" 200 -
528 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks
529 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks
529 "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=686173686564+1827a5bb63e602382eb89dd58f2ac9f3b007ad91
530 "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=686173686564+1827a5bb63e602382eb89dd58f2ac9f3b007ad91
530 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases
531 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases
531 "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks
532 "GET /?cmd=capabilities HTTP/1.1" 200 -
532 "GET /?cmd=capabilities HTTP/1.1" 200 -
533 "GET /?cmd=heads HTTP/1.1" 200 -
533 "GET /?cmd=heads HTTP/1.1" 200 -
534 "GET /?cmd=capabilities HTTP/1.1" 200 -
534 "GET /?cmd=capabilities HTTP/1.1" 200 -
General Comments 0
You need to be logged in to leave comments. Login now