Mercurial > hgrepos > DevTools > mercurial-extensions
changeset 163:ce4da7f9d27e
Require a local repository for timestamp save and restore
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Thu, 30 Aug 2018 00:58:07 +0200 |
| parents | 5587c90d5544 |
| children | a6a739ed3d05 |
| files | extensions/timestamps.py |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/timestamps.py Mon Aug 27 00:53:07 2018 +0200 +++ b/extensions/timestamps.py Thu Aug 30 00:58:07 2018 +0200 @@ -125,6 +125,8 @@ def save_timestamps(ui, repo, ctx, tsconfig=None): + if not repo.local(): + raise error.Abort(_("repository is not local")) matcher = gen_matcher(repo, ctx, tsconfig=tsconfig) for fn in ctx: print fn, matcher(fn) @@ -132,6 +134,8 @@ def restore_timestamps(ui, repo, ctx, tsconfig=None): + if not repo.local(): + raise error.Abort(_("repository is not local")) matcher = gen_matcher(repo, ctx, tsconfig=tsconfig)
