Show More
@@ -7,7 +7,7 | |||
|
7 | 7 | |
|
8 | 8 | from node import bin, hex, nullid, nullrev, short |
|
9 | 9 | from i18n import _ |
|
10 | import repo, changegroup, subrepo, discovery | |
|
10 | import repo, changegroup, subrepo, discovery, pushkey | |
|
11 | 11 | import changelog, dirstate, filelog, manifest, context |
|
12 | 12 | import lock, transaction, store, encoding |
|
13 | 13 | import util, extensions, hook, error |
@@ -20,7 +20,7 import weakref, errno, os, time, inspect | |||
|
20 | 20 | propertycache = util.propertycache |
|
21 | 21 | |
|
22 | 22 | class localrepository(repo.repository): |
|
23 | capabilities = set(('lookup', 'changegroupsubset', 'branchmap')) | |
|
23 | capabilities = set(('lookup', 'changegroupsubset', 'branchmap', 'pushkey')) | |
|
24 | 24 | supported = set('revlogv1 store fncache shared'.split()) |
|
25 | 25 | |
|
26 | 26 | def __init__(self, baseui, path=None, create=0): |
@@ -1846,6 +1846,12 class localrepository(repo.repository): | |||
|
1846 | 1846 | return self.stream_in(remote) |
|
1847 | 1847 | return self.pull(remote, heads) |
|
1848 | 1848 | |
|
1849 | def pushkey(self, namespace, key, old, new): | |
|
1850 | return pushkey.push(self, namespace, key, old, new) | |
|
1851 | ||
|
1852 | def listkeys(self, namespace): | |
|
1853 | return pushkey.list(self, namespace) | |
|
1854 | ||
|
1849 | 1855 | # used to avoid circular references so destructors work |
|
1850 | 1856 | def aftertrans(files): |
|
1851 | 1857 | renamefiles = [tuple(t) for t in files] |
General Comments 0
You need to be logged in to leave comments.
Login now