Patchwork [2,of,3] listkeypattern: add listkeypattern to localpeer

login
register
mail settings
Submitter Stanislau Hlebik
Date Aug. 12, 2016, 12:09 p.m.
Message ID <fd2185d7c2f7aa529b2a.1471003749@dev1918.lla1.facebook.com>
Download mbox | patch
Permalink /patch/16259/
State Changes Requested
Headers show

Comments

Stanislau Hlebik - Aug. 12, 2016, 12:09 p.m.
# HG changeset patch
# User Stanislau Hlebik <stash@fb.com>
# Date 1470932783 25200
#      Thu Aug 11 09:26:23 2016 -0700
# Node ID fd2185d7c2f7aa529b2ad0a6584832fb2b1b4ecb
# Parent  a7c8796d3636837bc90c2bc3712a0da5e44ebe75
listkeypattern: add listkeypattern to localpeer

Add localpeer method to list keys by pattern

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -208,6 +208,9 @@ 
     def listkeys(self, namespace):
         return self._repo.listkeys(namespace)
 
+    def listkeypattern(self, namespace, patterns):
+        return self._repo.listkeys(namespace, patterns=patterns)
+
     def debugwireargs(self, one, two, three=None, four=None, five=None):
         '''used to test argument passing over the wire'''
         return "%s %s %s %s %s" % (one, two, three, four, five)