largefiles: remove wrong comment on standin matcher and code for creating dirs
authorMads Kiilerich <madski@unity3d.com>
Thu, 28 Feb 2013 14:05:15 +0100
changeset 18732 1793251e75c8
parent 18731 c2d079387b2c
child 18733 1663fe10f693
largefiles: remove wrong comment on standin matcher and code for creating dirs The existence of these directories could not be relied on anyway and all dependencies on them should have been removed.
hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Thu Feb 28 14:51:59 2013 +0100
+++ b/hgext/largefiles/overrides.py	Thu Feb 28 14:05:15 2013 +0100
@@ -767,17 +767,6 @@
         sourcerepo, destrepo = result
         repo = destrepo.local()
 
-        # The .hglf directory must exist for the standin matcher to match
-        # anything (which listlfiles uses for each rev), and .hg/largefiles is
-        # assumed to exist by the code that caches the downloaded file.  These
-        # directories exist if clone updated to any rev.  (If the repo does not
-        # have largefiles, download never gets to the point of needing
-        # .hg/largefiles, and the standin matcher won't match anything anyway.)
-        if 'largefiles' in repo.requirements:
-            if opts.get('noupdate'):
-                util.makedirs(repo.wjoin(lfutil.shortname))
-                util.makedirs(repo.join(lfutil.longname))
-
         # Caching is implicitly limited to 'rev' option, since the dest repo was
         # truncated at that point.  The user may expect a download count with
         # this option, so attempt whether or not this is a largefile repo.