Mercurial > hg
diff hgext/largefiles/localstore.py @ 18998:d035c3902111
largefiles: refactoring - create destination dir in lfutil.link
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 15 Apr 2013 23:32:33 +0200 |
parents | a49b7c9fc246 |
children | eaf146e811a4 |
line wrap: on
line diff
--- a/hgext/largefiles/localstore.py Tue Apr 09 23:40:11 2013 +0900 +++ b/hgext/largefiles/localstore.py Mon Apr 15 23:32:33 2013 +0200 @@ -8,9 +8,6 @@ '''store class for local filesystem''' -import os - -from mercurial import util from mercurial.i18n import _ import lfutil @@ -26,7 +23,6 @@ super(localstore, self).__init__(ui, repo, self.remote.url()) def put(self, source, hash): - util.makedirs(os.path.dirname(lfutil.storepath(self.remote, hash))) if lfutil.instore(self.remote, hash): return lfutil.link(lfutil.storepath(self.repo, hash),