Source

hgbook / fr / examples / daily.rename

Full commit
#!/bin/bash

hg init a
cd a
echo a > a
hg ci -Ama

#$ name: rename

hg rename a b

#$ name: status

hg status

#$ name: status-copy

hg status -C