[PATCH 3 of 3] subrepo: add pull --subrepos support to svn subrepos

Angel Ezquerra angel.ezquerra at gmail.com
Sun Feb 17 06:19:18 CST 2013


# HG changeset patch
# User Angel Ezquerra <angel.ezquerra at gmail.com>
# 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


More information about the Mercurial-devel mailing list