Mercurial > hgrepos > DevTools > mercurial-extensions
changeset 377:3cf4c3d56eca
Check for a clean working directory only when no --dest is given when restoring timestamps
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 01 May 2019 12:27:19 +0200 |
| parents | d291983b4191 |
| children | 8ad3328096c0 |
| files | extensions/timestamps.py |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/timestamps.py Wed Mar 06 09:36:09 2019 +0100 +++ b/extensions/timestamps.py Wed May 01 12:27:19 2019 +0200 @@ -493,12 +493,12 @@ repo = ctx.repo() if not repo.local(): raise error.Abort(_("repository is not local")) - cmdutil.checkunfinished(repo) - cmdutil.bailifchanged(repo) tsconfmatch = _gen_matcher_from_tsconfig(ctx, tsconfig=tsconfig, ui=ui) if tsconfmatch is None: raise error.Abort(_("timestamps are not activated/configured")) if destdir is None: + cmdutil.checkunfinished(repo) + cmdutil.bailifchanged(repo) ts = _Timestamps.from_filename(ui, name=repo.wjoin(TIMESTAMPS_DATABASE)) else: ts = _Timestamps.from_ctx(ctx, ui)
