Show More
@@ -1900,6 +1900,10 b' class localrepository(repo.repository):' | |||
|
1900 | 1900 | del tr |
|
1901 | 1901 | |
|
1902 | 1902 | if changesets > 0: |
|
1903 | # forcefully update the on-disk branch cache | |
|
1904 | self.ui.debug(_("updating the branch cache\n")) | |
|
1905 | self.branchcache = None | |
|
1906 | self.branchtags() | |
|
1903 | 1907 | self.hook("changegroup", node=hex(self.changelog.node(cor+1)), |
|
1904 | 1908 | source=srctype, url=url) |
|
1905 | 1909 |
@@ -28,6 +28,7 b' adding foo/Bar/file.txt revisions' | |||
|
28 | 28 | adding foo/file.txt revisions |
|
29 | 29 | adding quux/file.py revisions |
|
30 | 30 | added 3 changesets with 3 changes to 3 files |
|
31 | updating the branch cache | |
|
31 | 32 | rolling back last transaction |
|
32 | 33 | 0:6675d58eff77 |
|
33 | 34 | |
@@ -59,6 +60,7 b' calling hook pretxnchangegroup.acl: hgex' | |||
|
59 | 60 | acl: acl.allow not enabled |
|
60 | 61 | acl: acl.deny not enabled |
|
61 | 62 | acl: changes have source "push" - skipping |
|
63 | updating the branch cache | |
|
62 | 64 | rolling back last transaction |
|
63 | 65 | 0:6675d58eff77 |
|
64 | 66 | |
@@ -94,6 +96,7 b' acl: acl.deny not enabled' | |||
|
94 | 96 | acl: allowing changeset ef1ea85a6374 |
|
95 | 97 | acl: allowing changeset f9cafe1212c8 |
|
96 | 98 | acl: allowing changeset 911600dab2ae |
|
99 | updating the branch cache | |
|
97 | 100 | rolling back last transaction |
|
98 | 101 | 0:6675d58eff77 |
|
99 | 102 | |
@@ -383,6 +386,7 b' acl: acl.deny enabled, 0 entries for use' | |||
|
383 | 386 | acl: allowing changeset ef1ea85a6374 |
|
384 | 387 | acl: allowing changeset f9cafe1212c8 |
|
385 | 388 | acl: allowing changeset 911600dab2ae |
|
389 | updating the branch cache | |
|
386 | 390 | rolling back last transaction |
|
387 | 391 | 0:6675d58eff77 |
|
388 | 392 | |
@@ -578,6 +582,7 b' acl: acl.deny enabled, 0 entries for use' | |||
|
578 | 582 | acl: allowing changeset ef1ea85a6374 |
|
579 | 583 | acl: allowing changeset f9cafe1212c8 |
|
580 | 584 | acl: allowing changeset 911600dab2ae |
|
585 | updating the branch cache | |
|
581 | 586 | rolling back last transaction |
|
582 | 587 | 0:6675d58eff77 |
|
583 | 588 |
@@ -41,6 +41,15 b' echo corrupted > .hg/branch.cache' | |||
|
41 | 41 | hg log -qr foo |
|
42 | 42 | cat .hg/branch.cache |
|
43 | 43 | |
|
44 | echo % push should update the branch cache | |
|
45 | hg init ../target | |
|
46 | echo % pushing just rev 0 | |
|
47 | hg push -qr 0 ../target | |
|
48 | cat ../target/.hg/branch.cache | |
|
49 | echo % pushing everything | |
|
50 | hg push -qf ../target | |
|
51 | cat ../target/.hg/branch.cache | |
|
52 | ||
|
44 | 53 | echo % update with no arguments: tipmost revision of the current branch |
|
45 | 54 | hg up -q -C 0 |
|
46 | 55 | hg up -q |
@@ -83,6 +83,15 b' 4909a3732169c0c20011c4f4b8fdff4e3d89b23f' | |||
|
83 | 83 | bf1bc2f45e834c75404d0ddab57d53beab56e2f8 default |
|
84 | 84 | 4909a3732169c0c20011c4f4b8fdff4e3d89b23f foo |
|
85 | 85 | 67ec16bde7f1575d523313b9bca000f6a6f12dca bar |
|
86 | % push should update the branch cache | |
|
87 | % pushing just rev 0 | |
|
88 | be8523e69bf892e25817fc97187516b3c0804ae4 0 | |
|
89 | be8523e69bf892e25817fc97187516b3c0804ae4 default | |
|
90 | % pushing everything | |
|
91 | 4909a3732169c0c20011c4f4b8fdff4e3d89b23f 4 | |
|
92 | bf1bc2f45e834c75404d0ddab57d53beab56e2f8 default | |
|
93 | 4909a3732169c0c20011c4f4b8fdff4e3d89b23f foo | |
|
94 | 67ec16bde7f1575d523313b9bca000f6a6f12dca bar | |
|
86 | 95 | % update with no arguments: tipmost revision of the current branch |
|
87 | 96 | bf1bc2f45e83 |
|
88 | 97 | 4909a3732169 (foo) tip |
General Comments 0
You need to be logged in to leave comments.
Login now