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

login
register
mail settings
Submitter Angel Ezquerra
Date Feb. 17, 2013, 12:19 p.m.
Message ID <a47dcdb3e4338b6ddf36.1361103558@Angel-PC.localdomain>
Download mbox | patch
Permalink /patch/1022/
State Superseded, archived
Headers show

Comments

Angel Ezquerra - Feb. 17, 2013, 12:19 p.m.
# HG changeset patch
# User Angel Ezquerra <angel.ezquerra@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.

Patch

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