hg clone fails on non-GNU systems
Matt Mackall
mpm at selenic.com
Fri Jul 15 07:00:22 UTC 2005
On Thu, Jul 14, 2005 at 04:32:21PM +0200, Thomas Arendsen Hein wrote:
> * Stephen Darnell <sdarnell at esmertec.com> [20050714 13:46]:
> > Here is a patch that works on Windows too.
> >
> > It uses a modified version of shutil.copytree(), and allows
> > use of copy rather than create+pull when the destination
> > is on a different device on Unix.
>
> copytree() should abort as soon as one error occurs. This is not a
> backup tool where you try to copy as much as you are able to. It
> doesn't matter if your cloned repo is 10% o 99% correct.
>
> There are two problems In commands.py:
> 1. You replaced ui.note with ui.status.
> 2. You copy the whole repo root, not only the .hg subdirectory.
>
> Attached is a patch (pullable from me) which fixes above problems
> and uses a simplified version of copytree, as it is not yet used in
> other places.
I've gone ahead and pulled this from TAH, mostly because it was the
simplest thing to do. It's not quite the best of breed fix yet, I
don't think, so further tweaks are welcome.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list