version control - Cloning a Mercurial repository without .hg -


how can clone mercurial repository without .hg folder save time (the project big)? need tip files.

the .hg directory stores complete repository information. is, information files , revisions tracked repository. storage, pretty efficient since compressed using binary differerencing.

when clone repository, thing cloned .hg directory. working copy after clone retrieved .hg.

if want store repository information (say on server), can remove working copy hg update null.

if want create clone of repository without revision information, can use hg archive command (see reference below). aware copy "working copy" (to use common svn terminology). can't commit, nor other mercurial operation it.

hg archive [option]... dest

create unversioned archive of repository revision

by default, revision used parent of working directory; use "-r" specify different revision.  specify type of archive create, use "-t". valid types are:  "files" (default): directory full of files "tar": tar archive, uncompressed "tbz2": tar archive, compressed using bzip2 "tgz": tar archive, compressed using gzip "uzip": zip archive, uncompressed "zip": zip archive, compressed using deflate  exact name of destination archive or directory given using format string; see "hg export" details.  each member added archive file has directory prefix prepended. use "-p" specify format string prefix. default basename of archive, suffixes removed. 

options:

--no-decode  not pass files through decoders  -p --prefix     

directory prefix files in archive -r --rev revision distribute -t --type type of distribution create -i --include include names matching given patterns -x --exclude exclude names matching given patterns


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -