removing repo that was cloned breaks clone

Brendan Cully brendan at kublai.com
Thu Jul 12 10:24:47 CDT 2007


On Thursday, 12 July 2007 at 17:12, Christian Ebert wrote:
> * Brendan Cully on Thursday, July 12, 2007 at 07:48:07 -0700:
> > On Thursday, 12 July 2007 at 16:42, Christian Ebert wrote:
> >> $ hg init test
> >> $ cd test
> >> $ echo hello >a
> >> $ hg add a
> >> $ hg ci -m hello
> >> $ echo world >>a
> >> $ hg ci -m world
> >> $ cd ..
> >> $ hg clone test test-1
> >> 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
> >> $ rm -rP test
> >> $ cd test-1/
> >> $ hg tip
> >> abort: requirement '���������������' not supported!
> > 
> > That works fine here, except that I don't have a -P flag for my
> > rm. What's that do?
> 
>      -P		 Overwrite regular files before deleting them.	Files are
> 		 overwritten three times, first with the byte pattern 0xff,
> 		 then 0x00, and then 0xff again, before they are deleted.

Ah. My feeling is that the answer here is "don't do that." It's not so
different from manually editing files in .hg. If you're keen to use
-rP on a directory, you can do:

[defaults]
clone = --pull


More information about the Mercurial-devel mailing list