comparison sat/plugins/plugin_merge_req_mercurial.py @ 2765:378188abe941

misc: replaced all "dummy" by the more conventional and readable "__" ("_" being used for gettext)
author Goffi <goffi@goffi.org>
date Fri, 11 Jan 2019 11:13:15 +0100
parents 163aab916bcf
children 003b8b4b56a7
comparison
equal deleted inserted replaced
2764:92af49cde255 2765:378188abe941
119 self._m = host.plugins['MERGE_REQUESTS'] 119 self._m = host.plugins['MERGE_REQUESTS']
120 self._m.register('mercurial', self, self.data_types, SHORT_DESC) 120 self._m.register('mercurial', self, self.data_types, SHORT_DESC)
121 121
122 def check(self, repository): 122 def check(self, repository):
123 d = MercurialProtocol.run(repository, 'identify') 123 d = MercurialProtocol.run(repository, 'identify')
124 d.addCallback(lambda dummy: True) 124 d.addCallback(lambda __: True)
125 d.addErrback(lambda dummy: False) 125 d.addErrback(lambda __: False)
126 return d 126 return d
127 127
128 def export(self, repository): 128 def export(self, repository):
129 return MercurialProtocol.run(repository, 'export', '-g', '-r', 'outgoing()', 129 return MercurialProtocol.run(repository, 'export', '-g', '-r', 'outgoing()',
130 '--encoding=utf-8') 130 '--encoding=utf-8')