# HG changeset patch # User Franz Glasner # Date 1535583487 -7200 # Node ID ce4da7f9d27ef3051c92a8e6d2bf755456e95d51 # Parent 5587c90d5544d45c399ef258764c0cf88891a269 Require a local repository for timestamp save and restore diff -r 5587c90d5544 -r ce4da7f9d27e extensions/timestamps.py --- 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)