Mercurial > libervia-backend
comparison sat/plugins/plugin_merge_req_mercurial.py @ 3876:e3c1f4736ab2
plugin mr mercurial: limit export to ancestors of working directory parent
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 23 Aug 2022 23:37:22 +0200 |
parents | be6d91572633 |
children |
comparison
equal
deleted
inserted
replaced
3875:a0666f17f300 | 3876:e3c1f4736ab2 |
---|---|
84 d.addCallback(lambda __: True) | 84 d.addCallback(lambda __: True) |
85 d.addErrback(lambda __: False) | 85 d.addErrback(lambda __: False) |
86 return d | 86 return d |
87 | 87 |
88 def export(self, repository): | 88 def export(self, repository): |
89 d = MercurialProtocol.run(repository, 'export', '-g', '-r', 'outgoing()', | 89 d = MercurialProtocol.run( |
90 '--encoding=utf-8') | 90 repository, 'export', '-g', '-r', 'outgoing() and ancestors(.)', |
91 '--encoding=utf-8' | |
92 ) | |
91 d.addCallback(lambda data: data.decode('utf-8')) | 93 d.addCallback(lambda data: data.decode('utf-8')) |
92 return d | 94 return d |
93 | 95 |
94 def import_(self, repository, data, data_type, item_id, service, node, extra): | 96 def import_(self, repository, data, data_type, item_id, service, node, extra): |
95 parsed_data = self.parse(data) | 97 parsed_data = self.parse(data) |