Incorrect commit of largefiles - duplicate between normal and .hglf file
Created originally on Bitbucket by kiilerix (Mads Kiilerich)
Phrased as a Mercurial test:
$ cat >> $HGRCPATH <<EOF
> [extensions]
> largefiles=
> EOF
$ hg init
$ echo > aaaa.txt
$ hg add aaaa.txt
$ hg commit -m "Initial commit"
$ hg forget aaaa.txt
$ hg add aaaa.txt --large
$ hg debugdirstate
a 0 -1 unset .hglf/aaaa.txt
r 0 0 1970-01-01 00:00:00 aaaa.txt
$ hg debugdirstate --large
a 0 -1 unset aaaa.txt
Now, a normal
$ hg commit -mx
would commit just .hglf/aaaa.txt, but
with thg (enter a commit message and commit and close), we also get aaaa.txt
committed, causing much confusion later on:
$ /home/madski/thg/thg --nofork commit
$ hg mani
.hglf/aaaa.txt
aaaa.txt
Verified with most recent versions of Mercurial and TortoiseHg