hg clone
Matt Mackall
mpm at selenic.com
Wed Jun 22 06:00:01 UTC 2005
On Wed, Jun 22, 2005 at 01:52:03PM +0800, Soh Tk-r28629 wrote:
> > -----Original Message-----
> > On Wed, Jun 22, 2005 at 10:56:38AM +0800, Soh Tk-r28629 wrote:
> > > According to README, we need found steps to clone a repo:
> > >
> > > $ mkdir linux-work
> > > $ cd linux-work
> > > $ hg init ../linux # create a new branch
> > > $ hg update # populate the working directory
> > >
> > > bk has a clone command that would everything in one line, plus the
> > ability to select the target changeset when cloning. Something that can be
> > done in hg?
> >
> > There's an init -u command now that gets it down to three steps, but
> > I'm unlikely to take out the mkdir steps.
>
> Nevermind the update, but any particular reasons we have to mkdir,
> cd & init explicitly?
a) it makes it easy to import an existing project
b) there's no concept of repository names in Mercurial
c) if they did, they'd tend to collide or conflict in annoying ways
d) we'd need to add an option to not create it in a subdirectory
I'd probably accept a -D <name> switch to init to do the mkdir && cd
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list