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

login
register
mail settings
Submitter Angel Ezquerra
Date March 3, 2013, 9:05 p.m.
Message ID <70724cf5d021de541cf5.1362344747@Angel-PC.localdomain>
Download mbox | patch
Permalink /patch/1077/
State Rejected, archived
Headers show

Comments

Angel Ezquerra - March 3, 2013, 9:05 p.m.
# HG changeset patch
# User Angel Ezquerra <angel.ezquerra@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.

Patch

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