2010-04-19 4 views
0

git에는 git 리포지토리를 1 개의 큰 파일로 묶는 'git bundle'명령이 있습니다. 'hg'와 동일한 명령이 있습니까?git 번들에 대한 hg 명령

+1

이 질문을하기 전에 어떤 연구를하셨습니까? 왜 Mercurial에서 같은 명령을 찾지 못한 이유에 대해 혼란 스럽기 때문에 나는 이것을 묻습니다. [email protected]을 작성하고 문서를 개선 할 필요가있는 곳을 지적하면 도움이 될 것입니다. 고맙습니다. –

답변

4

Hg는 동일한 명령을 지원합니다. 여기에 대한 도움이 있습니다 :

 
U:\>hg help bundle 
hg bundle [-f] [-t TYPE] [-a] [-r REV]... [--base REV]... FILE [DEST] 

create a changegroup file 

    Generate a compressed changegroup file collecting changesets not known to 
    be in another repository. 

    If you omit the destination repository, then hg assumes the destination 
    will have all the nodes you specify with --base parameters. To create a 
    bundle containing all changesets, use -a/--all (or --base null). 

    You can change compression method with the -t/--type option. The available 
    compression methods are: none, bzip2, and gzip (by default, bundles are 
    compressed using bzip2). 

    The bundle file can then be transferred using conventional means and 
    applied to another repository with the unbundle or pull command. This is 
    useful when direct push and pull are not available or when exporting an 
    entire repository is undesirable. 

    Applying bundles preserves all changeset contents including permissions, 
    copy/rename information, and revision history. 

options: 

-f --force  run even when the destination is unrelated 
-r --rev  a changeset intended to be added to the destination 
-b --branch  a specific branch you would like to bundle 
    --base  a base changeset assumed to be available at the destination 
-a --all  bundle all changesets in the repository 
-t --type  bundle compression type to use (default: bzip2) 
-e --ssh  specify ssh command to use 
    --remotecmd specify hg command to run on the remote side 

역방향 명령은 hg unbundle입니다.

+1

전체 설명서에서이 링크에 대한 링크입니다. http://www.selenic.com/mercurial/hg.1.html#bundle –

+1

그래, 그것은 Mercurial에서 같은 이름을 가지고있다 ... Git이 Mercurial에서 번들 명령어를 얻었 기 때문에 우연이 아니다 :-) –

관련 문제