Patchwork [5,of,7,PoC] largefiles: explicitly update largefiles after clone (to handle --update)

login
register
mail settings
Submitter Mads Kiilerich
Date Sept. 22, 2014, 9:13 a.m.
Message ID <75c44d4e4080bc1420f5.1411377218@localhost.localdomain>
Download mbox | patch
Permalink /patch/5910/
State Deferred
Headers show

Comments

Mads Kiilerich - Sept. 22, 2014, 9:13 a.m.
# HG changeset patch
# User Mads Kiilerich <madski@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.

Patch

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)