##// 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 if path is None:
141 if path is None:
142 raise error.Abort(_("missing largefile for '%s' in %s")
142 raise error.Abort(_("missing largefile for '%s' in %s")
143 % (realname, realrev))
143 % (realname, realrev))
144 fp = open(path, 'rb')
144 return util.readfile(path), f[1]
145
146 try:
147 return (fp.read(), f[1])
148 finally:
149 fp.close()
150
145
151 class converter(convcmd.converter):
146 class converter(convcmd.converter):
152 def __init__(self, ui, source, dest, revmapfile, opts):
147 def __init__(self, ui, source, dest, revmapfile, opts):
General Comments 0
You need to be logged in to leave comments. Login now