[PATCH 4 of 5] largefiles: wrap usercommitctx() instead of commitctx()

Dan Villiom Podlaski Christiansen danchr at gmail.com
Fri Jan 6 08:38:36 CST 2012


On 6 Jan 2012, at 15:16, Dan Villiom Podlaski Christiansen wrote:

> # HG changeset patch
> # User Dan Villiom Podlaski Christiansen  <danchr at gmail.com>
> # Date 1325857617 -3600
> # Node ID 31ace7a24b0384dc88a67763a73ccebe018f8077
> # Parent  6bf0076c8bac8d2e5ee91adfd25c65f2c32f5115
> largefiles: wrap usercommitctx() instead of commitctx()

…

> diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py
> --- a/hgext/largefiles/lfutil.py
> +++ b/hgext/largefiles/lfutil.py
> @@ -232,6 +232,14 @@ def copytostore(repo, rev, file, uploade
>         return
>     copytostoreabsolute(repo, repo.wjoin(file), hash)
> 
> +def copyalltostore(repo, node):
> +    ctx = repo[node]
> +    for filename in ctx.files():
> +        if isstandin(filename) and filename in ctx.manifest():
> +            realfile = splitstandin(filename)
> +            copytostore(repo, ctx.node(), realfile)
> +
> +
> def copytostoreabsolute(repo, file, hash):
>     util.makedirs(os.path.dirname(storepath(repo, hash)))
>     if inusercache(repo.ui, hash):

Mads just pointed out on IRC that this refactoring seems unrelated to the topic of the patch. I'll wait a bit to see if there are other comments and resend.

--

Dan Villiom Podlaski Christiansen
danchr at gmail.com



More information about the Mercurial-devel mailing list