--- 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: