BUG?find renamed files

Uwe Brauer oub at mat.ucm.es
Tue Nov 12 13:20:27 UTC 2019



Hi

The following script works nicely 
hg init
echo "First" > test.org
hg add test.org
hg commit -m "First"
echo "Second" >> test.org
hg commit -m "Second"
echo "Third" >> test.org
hg commit -m "Third"
mv test.org test_2.org
hg addremove
hg commit -m "Moved file name"
hg log -r "adds(test_2.org)" --template "{file_copies"}


But this one not:

hg init
echo "First" > test.org
hg add test.org
hg commit -m "First"
echo "Second" >> test.org
hg commit -m "Second"
echo "Third" >> test.org
hg commit -m "Third"
mv test.org annu-hoja2.tex
hg addremove
hg commit -m "Moved file name"
hg log -r "adds(annu-hoja2.tex)" --template "{file_copies}"


I obtain hg: parse error: adds requires a pattern

Is this a BUG?


I am using ubuntu 16.04 and 
HG:
Mercurial Distributed SCM (version 5.0.1+3-d532292eff22+20190614)

Regards

Uwe Brauer 



More information about the Mercurial mailing list