largefiles: explicitly set the source and sink types to 'hg' for lfconvert
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 23 Nov 2017 01:21:10 -0500
changeset 35179 4abfe4169259
parent 35178 f8f939a2926c
child 35180 3180ff7f6025
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.
hgext/largefiles/lfcommands.py
--- a/hgext/largefiles/lfcommands.py	Wed Nov 22 22:38:50 2017 -0500
+++ b/hgext/largefiles/lfcommands.py	Thu Nov 23 01:21:10 2017 -0500
@@ -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