From patchwork Sun Nov 26 22:45:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [5, of, 5] largefiles: explicitly set the source and sink types to 'hg' for lfconvert From: Matt Harbison X-Patchwork-Id: 25761 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sun, 26 Nov 2017 17:45:05 -0500 # HG changeset patch # User Matt Harbison # Date 1511418070 18000 # Thu Nov 23 01:21:10 2017 -0500 # Node ID e251a82c7a7601ce3d7e4fcccb2b44cb7d599db5 # Parent 1dfe0c6abea0374834bbb100b5402361e9d7954a largefiles: explicitly set the source and sink types to 'hg' for lfconvert I stumbled into this prior to adding the type indicator on the source and sink, but there's no reason to try to infer the types for this conversion. diff --git a/hgext/largefiles/lfcommands.py b/hgext/largefiles/lfcommands.py --- a/hgext/largefiles/lfcommands.py +++ b/hgext/largefiles/lfcommands.py @@ -177,7 +177,7 @@ convcmd.converter = converter try: - convcmd.convert(ui, src, dest) + convcmd.convert(ui, src, dest, source_type='hg', dest_type='hg') finally: convcmd.converter = orig success = True