From patchwork Sun Feb 17 12:19:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3,of,3] subrepo: add pull --subrepos support to svn subrepos From: Angel Ezquerra X-Patchwork-Id: 1022 Message-Id: To: mercurial-devel@selenic.com Date: Sun, 17 Feb 2013 13:19:18 +0100 # HG changeset patch # User Angel Ezquerra # Date 1360519887 -3600 # Node ID a47dcdb3e4338b6ddf361e16653fafe7d7ead27e # Parent 33063dc38f45ef3a707ddf95f1a716e370315840 subrepo: add pull --subrepos support to svn subrepos Pulling does not make sense for subversion subrepos. This change just makes sure that we do not raise NotImplementedError when we try to pull from subversion subrepos. diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -884,6 +884,10 @@ if _updateprompt(self._ui, self, dirty, wcrev, new): self.get(state, False) + def pull(self, opts): + # pull is a no-op for SVN + return True + def push(self, opts): # push is a no-op for SVN return True