[PATCH STABLE V2] largefiles: prevent committing a missing largefile

Matt Harbison mharbison72 at gmail.com
Thu Jan 28 21:49:01 CST 2016


On Thu, 28 Jan 2016 09:26:04 -0500, Yuya Nishihara <yuya at tcha.org> wrote:

> On Tue, 26 Jan 2016 20:11:09 -0500, Matt Harbison wrote:
>> # HG changeset patch
>> # User Matt Harbison <matt_harbison at yahoo.com>
>> # Date 1453612219 18000
>> #      Sun Jan 24 00:10:19 2016 -0500
>> # Branch stable
>> # Node ID 70f7e55f661904541966e115843e6753524a7664
>> # Parent  f20852b3f6c8f9ef04cdfb902dafb3e8923a4a20
>> largefiles: prevent committing a missing largefile
>
>> --- a/tests/test-largefiles-cache.t
>> +++ b/tests/test-largefiles-cache.t
>> @@ -19,6 +19,12 @@
>>    $ hg rm large
>>    $ hg commit -m 'branchhead without largefile' large
>>    $ hg up -qr 0
>> +  $ rm large
>> +  $ echo "0000000000000000000000000000000000000000" > .hglf/large
>> +  $ hg commit -m 'commit missing file with corrupt standin' large
>> +  abort: large: file not found!
>
> We'll need another workaround for "hg commit" (with no filename).

I thought 4511e8dac4c7 would cover this, but it looks like trashing the  
standin is distinct case.  I'll see what I can cobble together.


More information about the Mercurial-devel mailing list