Mercurial > libervia-backend
diff frontends/src/jp/cmd_merge_request.py @ 2558:501b0f827f63
jp (merge-request,common): fixed URIFinder when metadata are not needed:
new "meta_map" attribute which allows to select destination argument name, or to discard unused metadata.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 02 Apr 2018 08:23:22 +0200 |
parents | 0062d3e79d12 |
children |
line wrap: on
line diff
--- a/frontends/src/jp/cmd_merge_request.py Sun Apr 01 20:55:43 2018 +0200 +++ b/frontends/src/jp/cmd_merge_request.py Mon Apr 02 08:23:22 2018 +0200 @@ -121,7 +121,7 @@ exit_code=C.EXIT_BRIDGE_ERRBACK)) def start(self): - common.URIFinder(self, os.getcwd(), 'merge requests', self.getRequests) + common.URIFinder(self, os.getcwd(), 'merge requests', self.getRequests, meta_map={}) class Import(base.CommandBase): @@ -155,7 +155,7 @@ def start(self): self.repository = os.path.expanduser(os.path.abspath(self.args.repository)) - common.URIFinder(self, self.repository, 'merge requests', self.importRequest) + common.URIFinder(self, self.repository, 'merge requests', self.importRequest, meta_map={}) class MergeRequest(base.CommandBase):