[PATCH 1 of 2 v3] util: add progress callback support to copyfiles

Adrian Buehlmann adrian at cadifra.com
Tue Mar 24 16:08:26 CDT 2015


On 2015-03-24 21:45, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <augie at google.com>
> # Date 1426775062 14400
> #      Thu Mar 19 10:24:22 2015 -0400
> # Node ID 9bff84a5d07004cfe7ac2b1dfbdfb0f59ca37e18
> # Parent  5b85a5bc5bbb9d8365953609d98e4dce7110e9b0
> util: add progress callback support to copyfiles
> 
> diff --git a/mercurial/hg.py b/mercurial/hg.py
> --- a/mercurial/hg.py
> +++ b/mercurial/hg.py
> @@ -258,8 +258,8 @@ def copystore(ui, srcrepo, destpath):
>                      lockfile = os.path.join(dstbase, "lock")
>                      # lock to avoid premature writing to the target
>                      destlock = lock.lock(dstvfs, lockfile)
> -                hardlink, n = util.copyfiles(srcvfs.join(f), dstvfs.join(f),
> -                                             hardlink)
> +                hardlink, n = util.copyfiles(
> +                    srcvfs.join(f), dstvfs.join(f), hardlink)
>                  num += n
>          if hardlink:
>              ui.debug("linked %d files\n" % num)

This looks like a simple reformatting. Was that intended?



More information about the Mercurial-devel mailing list