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

Augie Fackler raf at durin42.com
Tue Mar 24 16:13:04 CDT 2015


On Tue, Mar 24, 2015 at 5:08 PM, Adrian Buehlmann <adrian at cadifra.com> wrote:
>> 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?


Ugh, no. I'll roll a v4. Good catch.


More information about the Mercurial-devel mailing list