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