changeset 37195:3be6f435db4f

infinitepush: drop error handling while pushing to svn server This is something which is internal to Facebook and we don't want in core. Differential Revision: https://phab.mercurial-scm.org/D2104
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 09 Feb 2018 13:50:16 +0530
parents 320b1f95f676
children 14acab54e08b
files hgext/infinitepush/__init__.py tests/test-infinitepush-bundlestore.t
diffstat 2 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/infinitepush/__init__.py	Fri Feb 09 13:36:50 2018 +0530
+++ b/hgext/infinitepush/__init__.py	Fri Feb 09 13:50:16 2018 +0530
@@ -799,9 +799,6 @@
             raise error.Abort(_('default repository not configured!'),
                              hint=_("see 'hg help config.paths'"))
         destpath = path.pushloc or path.loc
-        if destpath.startswith('svn+') and scratchpush:
-            raise error.Abort('infinite push does not work with svn repo',
-                              hint='did you forget to `hg push default`?')
         # Remote scratch bookmarks will be deleted because remotenames doesn't
         # know about them. Let's save it before push and restore after
         remotescratchbookmarks = _readscratchremotebookmarks(ui, repo, destpath)
--- a/tests/test-infinitepush-bundlestore.t	Fri Feb 09 13:36:50 2018 +0530
+++ b/tests/test-infinitepush-bundlestore.t	Fri Feb 09 13:50:16 2018 +0530
@@ -369,8 +369,3 @@
   |/
   o  initialcommit public
   
-Push to svn server should fail
-  $ hg push svn+ssh://svn.vip.facebook.com/svnroot/tfb/trunk/www -r . --to scratch/serversidebook
-  abort: infinite push does not work with svn repo
-  (did you forget to `hg push default`?)
-  [255]