Show More
@@ -1951,8 +1951,8 b' class localrepository(object):' | |||
|
1951 | 1951 | if not r: |
|
1952 | 1952 | self.ui.warn(_('updating %s to public failed!\n') |
|
1953 | 1953 | % newremotehead) |
|
1954 | if ('obsolete' in remote.listkeys('namespaces') | |
|
1955 | and self.obsstore): | |
|
1954 | if (self.obsstore and | |
|
1955 | 'obsolete' in remote.listkeys('namespaces')): | |
|
1956 | 1956 | data = self.listkeys('obsolete')['dump'] |
|
1957 | 1957 | r = remote.pushkey('obsolete', 'dump', '', data) |
|
1958 | 1958 | if not r: |
@@ -214,7 +214,6 b' test that prepushkey can prevent incomin' | |||
|
214 | 214 | searching for changes |
|
215 | 215 | no changes found |
|
216 | 216 | listkeys hook: HG_NAMESPACE=phases HG_VALUES={'cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b': '1', 'publishing': 'True'} |
|
217 | listkeys hook: HG_NAMESPACE=namespaces HG_VALUES={'bookmarks': '', 'namespaces': '', 'obsolete': '', 'phases': ''} | |
|
218 | 217 | listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} |
|
219 | 218 | listkeys hook: HG_NAMESPACE=bookmarks HG_VALUES={'bar': '0000000000000000000000000000000000000000', 'foo': '0000000000000000000000000000000000000000'} |
|
220 | 219 | exporting bookmark baz |
@@ -14,6 +14,16 b'' | |||
|
14 | 14 | > hg id --debug -ir "desc('$1')" |
|
15 | 15 | > } |
|
16 | 16 | |
|
17 | $ cat > debugkeys.py <<EOF | |
|
18 | > def reposetup(ui, repo): | |
|
19 | > class debugkeysrepo(repo.__class__): | |
|
20 | > def listkeys(self, namespace): | |
|
21 | > ui.write('listkeys %s\n' % (namespace,)) | |
|
22 | > return super(debugkeysrepo, self).listkeys(namespace) | |
|
23 | > | |
|
24 | > if repo.local(): | |
|
25 | > repo.__class__ = debugkeysrepo | |
|
26 | > EOF | |
|
17 | 27 | |
|
18 | 28 |
$ |
|
19 | 29 | $ cd tmpa |
@@ -178,6 +188,16 b' Try to pull markers' | |||
|
178 | 188 | ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 {'date': '1338 0', 'user': 'test'} |
|
179 | 189 | 1337133713371337133713371337133713371337 5601fb93a350734d935195fee37f4054c529ff39 0 {'date': '1339 0', 'user': 'test'} |
|
180 | 190 | |
|
191 | Check obsolete keys are exchanged only if source has an obsolete store | |
|
192 | ||
|
193 | $ hg init empty | |
|
194 | $ hg --config extensions.debugkeys=debugkeys.py -R empty push tmpd | |
|
195 | pushing to tmpd | |
|
196 | no changes found | |
|
197 | listkeys phases | |
|
198 | listkeys bookmarks | |
|
199 | [1] | |
|
200 | ||
|
181 | 201 | clone support |
|
182 | 202 | (markers are copied and extinct changesets are included to allow hardlinks) |
|
183 | 203 |
General Comments 0
You need to be logged in to leave comments.
Login now