Tuesday, January 31, 2017

hg clean

there's no equivalent to git clean, but

hg status -iu                          # to show
hg status -iun0 | xargs -r0 rm         # to destroy

removes all the ignored (i) and unversioned (u) files that may be lying around (including emacs backup files etc, may be better to do make clean)


and then

hg update -C -r xxxxx

restores the state of the parent (note just -C puts you to tip rather than to where you are)

No comments:

Post a Comment