diff hgext/transplant.py @ 41676:0531dff73d0b

match: delete unused root and cwd arguments from {always,never,exact}() (API) Differential Revision: https://phab.mercurial-scm.org/D5930
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 09 Feb 2019 22:50:53 -0800
parents 5cb8158a61f7
children 5f2f6912c9e6
line wrap: on
line diff
--- a/hgext/transplant.py	Sun Feb 10 14:35:36 2019 -0800
+++ b/hgext/transplant.py	Sat Feb 09 22:50:53 2019 -0800
@@ -325,9 +325,9 @@
         if merge:
             p1 = repo.dirstate.p1()
             repo.setparents(p1, node)
-            m = match.always(repo.root, '')
+            m = match.always()
         else:
-            m = match.exact(repo.root, '', files)
+            m = match.exact(files)
 
         n = repo.commit(message, user, date, extra=extra, match=m,
                         editor=self.getcommiteditor())