##// END OF EJS Templates
largefiles: use util.readfile in lfconvert
Bryan O'Sullivan -
r27774:8ceaaf63 default
parent child Browse files
Show More
@@ -141,12 +141,7 b' def lfconvert(ui, src, dest, *pats, **op'
141 141 if path is None:
142 142 raise error.Abort(_("missing largefile for '%s' in %s")
143 143 % (realname, realrev))
144 fp = open(path, 'rb')
145
146 try:
147 return (fp.read(), f[1])
148 finally:
149 fp.close()
144 return util.readfile(path), f[1]
150 145
151 146 class converter(convcmd.converter):
152 147 def __init__(self, ui, source, dest, revmapfile, opts):
General Comments 0
You need to be logged in to leave comments. Login now