[PATCH 5 of 7 PoC] largefiles: explicitly update largefiles after clone (to handle --update)
Mads Kiilerich
mads at kiilerich.com
Mon Sep 22 04:13:38 CDT 2014
# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1411377060 -7200
# Mon Sep 22 11:11:00 2014 +0200
# Node ID 75c44d4e4080bc1420f5254afce4078e6cd6a66b
# Parent ff4cf5fee9f9e080735f1c86a4e032a91f404cf6
largefiles: explicitly update largefiles after clone (to handle --update)
Not really used as long as we have mergeupdate mocking.
There is no initial repo so the decorator can't be used.
diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -771,6 +771,9 @@ def hgclone(orig, ui, opts, *args, **kwa
if missing != 0:
return None
+ filelist = lfutil.listlfiles(repo)
+ lfcommands.updatelfiles(ui, repo, filelist, printmessage=False)
+
return result
@lfutil.standintolargefiles(printmessage=False)
More information about the Mercurial-devel
mailing list