--- a/hgext/largefiles/lfutil.py Thu Feb 23 13:37:10 2012 +0100
+++ b/hgext/largefiles/lfutil.py Thu Feb 23 13:37:10 2012 +0100
@@ -13,7 +13,6 @@
import platform
import shutil
import stat
-import tempfile
from mercurial import dirstate, httpconnection, match as match_, util, scmutil
from mercurial.i18n import _
@@ -439,13 +438,6 @@
return ('largefiles' in repo.requirements and
util.any(shortname + '/' in f[0] for f in repo.store.datafiles()))
-def mkstemp(repo, prefix):
- '''Returns a file descriptor and a filename corresponding to a temporary
- file in the repo's largefiles store.'''
- path = repo.join(longname)
- util.makedirs(path)
- return tempfile.mkstemp(prefix=prefix, dir=path)
-
class storeprotonotcapable(Exception):
def __init__(self, storetypes):
self.storetypes = storetypes