# HG changeset patch
# User Stanislau Hlebik <st...@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

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)
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to