2011-07-01 9 views
14

.hg 폴더없이 Mercurial 저장소를 복제하면 시간을 절약 할 수 있습니다 (프로젝트가 큼)? 팁 파일 만 있으면됩니다..hg없이 Mercurial 저장소 복제

+0

어떻게이 시간을 절약 할 수 있다는 생각을 일치하는 이름을 제외 --exclude 을 -X 포함되어 있습니까? non-repo 복사본을 변경해야합니까? –

+0

@Joel B Fant No. – oaziz

답변

20

.hg 디렉토리는 전체 저장소 정보를 저장합니다. 즉, 저장소에서 추적 한 모든 파일 및 해당 개정에 대한 정보입니다. 저장소의 경우 바이너리 분산을 사용하여 압축되기 때문에 대개 매우 효율적입니다.

리포지토리를 복제 할 때 복제되는 것은 .hg 디렉터리뿐입니다. 복제 후 얻을 작업 복사본은 .hg에서 검색됩니다.

저장할 정보가 저장소 정보 (예 : 서버)이면 hg update null으로 작업 복사본을 제거 할 수 있습니다.

리비전 정보없이 리포지토리의 복제본을 만들려면 hg archive 명령을 사용할 수 있습니다 (아래 참고 자료 참조). 이 복사본은 단지 "작업 복사본"(몇 가지 일반적인 svn 용어 사용)입니다. 다른 수은 작업을 수행하거나 커밋 할 수 없습니다. 아카이브 에있는 파일에 대한

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

디렉토리의 접두사 :

HG 아카이브 [OPTION] ... DEST

는 저장소 개정 버전없는 아카이브

By default, the revision used is the parent of the working 
directory; use "-r" to specify a different revision. 

To specify the type of archive to create, use "-t". Valid 
types are: 

"files" (default): a 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 

The exact name of the destination archive or directory is given 
using a format string; see "hg help export" for details. 

Each member added to an archive file has a directory prefix 
prepended. Use "-p" to specify a format string for the prefix. 
The default is the basename of the archive, with suffixes removed. 

옵션을 만들 -r --rev 배포 할 수정 버전 -t -ttype - 배포 할 배포 유형 -I --include 지정된 패턴과 일치하는 이름이 주어진 패턴

+0

설명에 따라 대상에는 서식 문자열에서 제공하는 서식있는 정보가 포함될 수 있지만 일반 오래된 경로도 처리합니다. 서식을 사용하면 보관할 경로의 저장소에 대한 정보를 인코딩 할 수 있습니다. –

관련 문제