The equivalent of svn export?
Matt Mackall
mpm at selenic.com
Thu Dec 18 20:07:58 UTC 2008
On Thu, 2008-12-18 at 07:03 -0500, Fournier,Danny [NCR] wrote:
> > -----Original Message-----
> > From: Peter Hosey [mailto:boredzo at gmail.com] On Behalf Of Peter Hosey
> > Sent: December 17, 2008 2:28 PM
> > To: Fournier,Danny [NCR]
> > Cc: Mercurial
> > Subject: Re: The equivalent of svn export?
> >
> > On Dec 17, 2008, at 11:20:46, Fournier,Danny [NCR] wrote:
> > > I'm simply trying to extract only the code files from the
> > repository
> > > and output them somewhere without having to clean out the Mercurial
> > > stuff.
> > >
> > > In Subversion, I simply did a svn export to a specified directory.
> >
> > hg archive is Mercurial's equivalent to svn export.
> >
>
> Thanks, it did end up working. I was following this:
> http://www.selenic.com/mercurial/wiki/index.cgi/TipsAndTricks
>
> I had to specify a revision (ie. -r tip) for it to work, which didn't
> seem to be needed per the "Tips and Tricks". I kept getting the
> following error without it: "abort: repository has no revisions".
Hmmm, that's a bogus message. By default, archive uses the parent of the
working directory and you had no version checked out.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list