diff mercurial/commands.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 8dda6f6ff564
children b629397ca15f
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Aug 15 09:41:30 2014 -0700
+++ b/mercurial/commands.py	Thu Aug 14 01:53:07 2014 -0700
@@ -2341,7 +2341,7 @@
             try:
                 try:
                     repo.obsstore.create(tr, parsenodeid(precursor), succs,
-                                         opts['flags'], metadata)
+                                         opts['flags'], metadata=metadata)
                     tr.close()
                 except ValueError, exc:
                     raise util.Abort(_('bad obsmarker input: %s') % exc)