diff mercurial/debugcommands.py @ 32449:08d02c1d7e67

devel: use default-date config field when creating obsmarkers Also use the default-date when creating obsmarkers. Currently they are created with the current date and without any option to force their value. To test the feature, we remove some of the many 'glob' used to match obsmarker date in the tests.
author Boris Feld <boris.feld@octobus.net>
date Fri, 19 May 2017 12:08:47 +0200
parents 952017471f93
children 2def402bd16d
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Mon May 22 16:59:57 2017 +0200
+++ b/mercurial/debugcommands.py	Fri May 19 12:08:47 2017 +0200
@@ -1356,7 +1356,7 @@
                     parents = tuple(p.node() for p in parents)
                 repo.obsstore.create(tr, prec, succs, opts['flags'],
                                      parents=parents, date=date,
-                                     metadata=metadata)
+                                     metadata=metadata, ui=ui)
                 tr.close()
             except ValueError as exc:
                 raise error.Abort(_('bad obsmarker input: %s') % exc)