[PATCH 2 of 3] convert: remove `if False` block

Augie Fackler raf at durin42.com
Fri Jul 7 15:17:05 EDT 2017


# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1499454503 14400
#      Fri Jul 07 15:08:23 2017 -0400
# Node ID 0bb8da5f14431d5e648cd548c9512c48bd2d5b9c
# Parent  6b6be532c678c9e7932476cb0350b0e10b9fb194
convert: remove `if False` block

This code has never run since its introduction on July 18th,
2007. It's time for it to go.

diff --git a/hgext/convert/transport.py b/hgext/convert/transport.py
--- a/hgext/convert/transport.py
+++ b/hgext/convert/transport.py
@@ -81,11 +81,6 @@ class SvnRaTransport(object):
         if ra is None or not util.safehasattr(svn.ra, 'reparent'):
             self.client = svn.client.create_context(self.pool)
             ab = _create_auth_baton(self.pool)
-            if False:
-                svn.core.svn_auth_set_parameter(
-                    ab, svn.core.SVN_AUTH_PARAM_DEFAULT_USERNAME, self.username)
-                svn.core.svn_auth_set_parameter(
-                    ab, svn.core.SVN_AUTH_PARAM_DEFAULT_PASSWORD, self.password)
             self.client.auth_baton = ab
             global svn_config
             if svn_config is None:


More information about the Mercurial-devel mailing list