Use the -s/--similarity option to detect renamed files. With a parameter greater than 0, this compares every removed file with every added file and records those similar enough as renames. This option takes a percentage between 0 (disabled) and 100 (files must be identical) as its parameter. Detecting renamed files this way can be expensive.
no subject
hg copy htdocs/foo/bar.bml cgi-bin/DW/Controller/Foo/Bar.pm
hg mv htdocs/foo/bar.bml views/foo/bar.tt
hg mv htdocs/foo/bar.bml.text views/foo/bar.tt.text
(hg mv is an alias for hg rename)
ETA "hg help addremove" excerpt:
Use the -s/--similarity option to detect renamed files. With a parameter greater than 0, this compares every removed file with every added file and records those similar enough as renames. This option takes a percentage between 0 (disabled) and 100 (files must be identical) as its parameter. Detecting renamed files this way can be expensive.