changeset 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 a0666f17f300
children 00212260f659
files sat/plugins/plugin_merge_req_mercurial.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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