Tags & production questions
Giorgos Keramidas
keramida at ceid.upatras.gr
Thu May 3 21:57:00 UTC 2007
On 2007-05-03 22:39, Guido Ostkamp <hg at ostkamp.fastmail.fm> wrote:
> By the way, I haven't found a command yet to get rid of the current
> working copy of an repository (with the exception of creating another
> new clone with 'hg clone -U'). Is there such a command, something like
> 'hg clobber'?
I regularly use rm(1) for this:
cd workspace/
rm -fr *
Some of the dotfiles are left around, but that's usually pretty easy to
recover from too ;-)
This is basically the exact set of commands I use to "start over" from a
fresh checkout every time I want to repeat a build.
For instance here's how I repeat twice the build of a clean checkout
of the alpha5 version of a project:
% cd ws/project
% hg clone -r 1.0-alpha5 main rel-1.0-alpha5
% cd rel-1.0-alpha5
% ./autogen.sh && ./configure && make release
% rm -fr *
% hg up -C
% ./autogen.sh && ./configure && make release
More information about the Mercurial
mailing list