comparison hgext3rd/fastimport/__init__.py @ 97:cde0e1d24e58

We always compress/decompress blob data So remove the test if we have a compressor or decompressor. While here, fix a line limit.
author Roy Marples <roy@marples.name>
date Fri, 22 Jan 2021 15:53:03 +0000
parents 7eb15a5c4cad
children a90da62aa705
comparison
equal deleted inserted replaced
96:7eb15a5c4cad 97:cde0e1d24e58
63 convcmd.orig_encoding = encoding.encoding 63 convcmd.orig_encoding = encoding.encoding
64 encoding.encoding = b"UTF-8" 64 encoding.encoding = b"UTF-8"
65 65
66 # sink is the current repo, src is the list of fastimport streams 66 # sink is the current repo, src is the list of fastimport streams
67 destc = hg.mercurial_sink(ui, b"hg", repo.root) 67 destc = hg.mercurial_sink(ui, b"hg", repo.root)
68 srcc = fastimport_source(ui, b"fastimport", repo, sources, opts[b"blobpath"]) 68 srcc = fastimport_source(ui, b"fastimport", repo, sources,
69 opts[b"blobpath"])
69 70
70 defaultsort = b"branchsort" # for efficiency and consistency 71 defaultsort = b"branchsort" # for efficiency and consistency
71 sortmodes = (b"branchsort", b"datesort", b"sourcesort") 72 sortmodes = (b"branchsort", b"datesort", b"sourcesort")
72 sortmode = [m for m in sortmodes if opts.get(m)] 73 sortmode = [m for m in sortmodes if opts.get(m)]
73 if len(sortmode) > 1: 74 if len(sortmode) > 1: