BUG?find renamed files

Uwe Brauer oub at mat.ucm.es
Tue Nov 12 13:47:57 UTC 2019


>>> "M" == Marcus  <mh-mercurial at online.de> writes:

   > On 12/11/2019 14.20, Uwe Brauer wrote:
   >> hg log -r "adds(test_2.org)" --template "{file_copies"}

   > Surely there is a typo at the end of the line?!

Right.

hg log -r "adds(test_2.org)" --template "{file_copies}"

Is the correct syntax

   >> hg log -r "adds(annu-hoja2.tex)" --template "{file_copies}"
   >> 
   >> I obtain hg: parse error: adds requires a pattern
   >> Is this a BUG?

   > I don't think so, but I'll leave that decision to the experts.
   > However, the logic behind detecting literals could perhaps be
   > documented in more detail. The file name should be quoted. Same with
   > literals containing space characters in some constructs, such as
   > ‘date()’.

I confirm that 


hg log -r "adds('annu-hoja2.tex')" --template "{file_copies}"

Works but I am wondering why 


hg log -r "adds(test_2.org)" --template "{file_copies}"

Without the ' '  works

Uwe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5025 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20191112/bf8e470f/attachment.p7s>


More information about the Mercurial mailing list