diff mercurial/obsolete.py @ 22216:9be81b86ca97

obsolete: explicitly pass metadata argument using keyword argument We are about to add more arguments to this function (date, parents, etc). Passing metadata as a keyword argument gives us more flexibility when adding them.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 14 Aug 2014 01:53:07 -0700
parents 525cde5d954d
children 570f87422f54
line wrap: on
line diff
--- a/mercurial/obsolete.py	Fri Aug 15 09:41:30 2014 -0700
+++ b/mercurial/obsolete.py	Thu Aug 14 01:53:07 2014 -0700
@@ -868,7 +868,8 @@
             nsucs = tuple(s.node() for s in sucs)
             if nprec in nsucs:
                 raise util.Abort("changeset %s cannot obsolete itself" % prec)
-            repo.obsstore.create(tr, nprec, nsucs, flag, localmetadata)
+            repo.obsstore.create(tr, nprec, nsucs, flag,
+                                 metadata=localmetadata)
             repo.filteredrevcache.clear()
         tr.close()
     finally: