BUG?find renamed files

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Nov 20 18:03:59 UTC 2019



On 11/12/19 2:47 PM, Uwe Brauer wrote:
>>>> "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

The "-" in you second example is a valid revset/fileset operator, so the 
input is parsed and becomes an expression.


-- 
Pierre-Yves David



More information about the Mercurial mailing list