pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)
Res facta quae tamen fingi potuit ([personal profile] pauamma) wrote in [site community profile] dw_dev 2010-07-10 02:58 pm (UTC)

Another useful command is "hg copy". Typical use is when a file is split in 2, eg when TTizing a page.

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.

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org