[PATCH 3 of 5 V2] subrepo: add pull --subrepos support to svn subrepos
Angel Ezquerra
angel.ezquerra at gmail.com
Sun Mar 3 15:05:47 CST 2013
# HG changeset patch
# User Angel Ezquerra <angel.ezquerra at gmail.com>
# Date 1360519887 -3600
# Node ID 70724cf5d021de541cf545440dd0937dade6e471
# Parent 191273cb15a13cab7fef24a5b8404f8302e09395
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
@@ -885,6 +885,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
More information about the Mercurial-devel
mailing list