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