Patchwork D7174: largefiles: delete obsolete and unushed repo.push()

login
register
mail settings
Submitter phabricator
Date Oct. 24, 2019, 6:38 p.m.
Message ID <differential-rev-PHID-DREV-4dis5szhehaxbkaulnye-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42577/
State Superseded
Headers show

Comments

phabricator - Oct. 24, 2019, 6:38 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The function was removed from localrepo in 4d52e6eb98ea <https://phab.mercurial-scm.org/rHG4d52e6eb98ea18a30448adca185cc9446ea78c31> (locarepo:
  remove the `push` method (API), 2014-09-25).

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7174

AFFECTED FILES
  hgext/largefiles/reposetup.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel
phabricator - Nov. 5, 2019, 9:18 p.m.
martinvonz added a comment.


  I'll fix the "unushed" typo in flight (there's just one commit on top right now)

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7174/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7174

To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/hgext/largefiles/reposetup.py b/hgext/largefiles/reposetup.py
--- a/hgext/largefiles/reposetup.py
+++ b/hgext/largefiles/reposetup.py
@@ -355,20 +355,6 @@ 
                 )
                 return result
 
-        def push(self, remote, force=False, revs=None, newbranch=False):
-            if remote.local():
-                missing = set(self.requirements) - remote.local().supported
-                if missing:
-                    msg = _(
-                        b"required features are not"
-                        b" supported in the destination:"
-                        b" %s"
-                    ) % (b', '.join(sorted(missing)))
-                    raise error.Abort(msg)
-            return super(lfilesrepo, self).push(
-                remote, force=force, revs=revs, newbranch=newbranch
-            )
-
         # TODO: _subdirlfs should be moved into "lfutil.py", because
         # it is referred only from "lfutil.updatestandinsbymatch"
         def _subdirlfs(self, files, lfiles):