changeset 227:097d08017d78

Don't throw on non-local repositories: just skip the timestamps-related work
author Franz Glasner <f.glasner@feldmann-mg.com>
date Mon, 22 Oct 2018 14:41:39 +0200
parents 04a90432e9e7
children 6d3d39aaaed9
files extensions/timestamps.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/extensions/timestamps.py	Mon Oct 22 14:13:35 2018 +0200
+++ b/extensions/timestamps.py	Mon Oct 22 14:41:39 2018 +0200
@@ -770,9 +770,10 @@
 
         def commit(self, text="", user=None, date=None, match=None,
                    force=False, editor=False, extra=None, **kwds):
-            if not self.local():
-                raise error.Abort(_("repository is not local"))
-            match = self._ts_commit(match)
+            if self.local():
+                match = self._ts_commit(match)
+            else:
+                self.ui.debug("commit.timestamps: repo is not local\n")
             return super(TimestampedRepo, self).commit(text=text,
                                                        user=user,
                                                        date=date,