hgext/largefiles/reposetup.py
changeset 19779 fb6e87d93948
parent 19570 f69ebcb06ce2
child 20177 c5f0574034ef
--- a/hgext/largefiles/reposetup.py	Sat Sep 21 21:33:29 2013 +0900
+++ b/hgext/largefiles/reposetup.py	Sat Sep 21 21:33:29 2013 +0900
@@ -407,6 +407,14 @@
                 wlock.release()
 
         def push(self, remote, force=False, revs=None, newbranch=False):
+            if remote.local():
+                missing = set(self.requirements) - remote.local().supported
+                if missing:
+                    msg = _("required features are not"
+                            " supported in the destination:"
+                            " %s") % (', '.join(sorted(missing)))
+                    raise util.Abort(msg)
+
             outgoing = discovery.findcommonoutgoing(repo, remote.peer(),
                                                     force=force)
             if outgoing.missing: