[PATCH 5 of 5] largefiles: explicitly set the source and sink types to 'hg' for lfconvert

Matt Harbison mharbison72 at gmail.com
Sun Nov 26 17:45:05 EST 2017


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# 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


More information about the Mercurial-devel mailing list