The equivalent of svn export?

Fournier,Danny [NCR] Danny.Fournier at ec.gc.ca
Thu Dec 18 12:03:37 UTC 2008


> -----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".




More information about the Mercurial mailing list