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

login
register
mail settings
Submitter Augie Fackler
Date July 7, 2017, 7:17 p.m.
Message ID <0bb8da5f14431d5e648c.1499455025@imladris.local>
Download mbox | patch
Permalink /patch/22115/
State Accepted
Headers show

Comments

Augie Fackler - July 7, 2017, 7:17 p.m.
# HG changeset patch
# User Augie Fackler <raf@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.

Patch

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: