HG(ADDREMOVE) HG(ADDREMOVE) (NAME) hg addremove - (SYNOPSIS) hg addremove [OPTION]... [FILE]... (DESCRIPTION) . .hgignore . add . -s/--similarity . 0 () 100 ( ) . 0 . . hg status -C . -s/--similarity 100 . : o (bar.c foo.c) foobar.c ( hg remove) : $ ls bar.c foo.c $ hg status ! foobar.c ? bar.c ? foo.c $ hg addremove adding bar.c adding foo.c removing foobar.c $ hg status A bar.c A foo.c R foobar.c o foobar.c hg rename foo.c . : $ ls foo.c $ hg status ! foobar.c ? foo.c $ hg addremove --similarity 90 removing foobar.c adding foo.c recording removal of foobar.c as rename to foo.c (94% similar) $ hg status -C A foo.c foobar.c R foobar.c 0 . (OPTIONS) -s,--similarity (0<=s<=100) -S, --subrepos -I,--include -X,--exclude -n, --dry-run [+] HG(ADDREMOVE)