# HG changeset patch # User Goffi # Date 1661290642 -7200 # Node ID e3c1f4736ab267c8c10ed4e2b14bbba2169a373b # Parent a0666f17f3005041e5a6f868a9d9f39f6124ae33 plugin mr mercurial: limit export to ancestors of working directory parent diff -r a0666f17f300 -r e3c1f4736ab2 sat/plugins/plugin_merge_req_mercurial.py --- a/sat/plugins/plugin_merge_req_mercurial.py Tue Aug 23 13:00:07 2022 +0200 +++ b/sat/plugins/plugin_merge_req_mercurial.py Tue Aug 23 23:37:22 2022 +0200 @@ -86,8 +86,10 @@ return d def export(self, repository): - d = MercurialProtocol.run(repository, 'export', '-g', '-r', 'outgoing()', - '--encoding=utf-8') + d = MercurialProtocol.run( + repository, 'export', '-g', '-r', 'outgoing() and ancestors(.)', + '--encoding=utf-8' + ) d.addCallback(lambda data: data.decode('utf-8')) return d