Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
32448:f94d7e3e46a0 | 32449:08d02c1d7e67 |
---|---|
1354 'unknown changesets') | 1354 'unknown changesets') |
1355 parents = repo.unfiltered()[prec].parents() | 1355 parents = repo.unfiltered()[prec].parents() |
1356 parents = tuple(p.node() for p in parents) | 1356 parents = tuple(p.node() for p in parents) |
1357 repo.obsstore.create(tr, prec, succs, opts['flags'], | 1357 repo.obsstore.create(tr, prec, succs, opts['flags'], |
1358 parents=parents, date=date, | 1358 parents=parents, date=date, |
1359 metadata=metadata) | 1359 metadata=metadata, ui=ui) |
1360 tr.close() | 1360 tr.close() |
1361 except ValueError as exc: | 1361 except ValueError as exc: |
1362 raise error.Abort(_('bad obsmarker input: %s') % exc) | 1362 raise error.Abort(_('bad obsmarker input: %s') % exc) |
1363 finally: | 1363 finally: |
1364 tr.release() | 1364 tr.release() |