2

a Subversion repository to Mercurial에서 소스 코드를 가져오고 싶습니다. Hg Subversion을 사용하여 가져 왔습니다. 문제는 SVN repo의 레이아웃이 trunk 디렉토리, branches 디렉토리 등의 브랜치와 같은 기본 설정입니다.하지만 지금은 그렇지 않았습니다. 얼마 전 프로젝트의 모든 디렉토리가 루트 저장소 였기 때문에 Subversion은 branches 디렉토리를 Mercurial 브랜치로 변환 할 수 없었고 새 Mercurial 저장소는 branchestrunk 디렉토리 만 포함합니다. 각 지점 b 지금 잘 형성되었지만 잘 형성되지 않은 Subversion 저장소 가져 오기

  • hg mv branches/$b .
  • hg rm branches trunk
  • hg branch $b
  • hg commint -m "Creating branch $b"
  • 0123에 대한

    • :

      나는 의욕 지점에 "어려운 방법"지점 디렉토리를 변환

      그러나 궁금합니다. 더 나은 방법이 있습니까? 이 문제를 어떻게 풀려고합니까?

    답변

    0

    hgsubversion은 트렁크/태그/브랜치 디렉토리의 존재를 자동 감지하고 지능적인 일을 수행해야합니다. hgsubversion을 비 자동 모드로 설정하여 강제로 실행하지 않았습니까?

    0
    $ hg help convert 
    
    The filemap is a file that allows filtering and remapping of files and 
    directories. Each line can contain one of the following directives: 
    
        include path/to/file-or-dir 
    
        exclude path/to/file-or-dir 
    
        rename path/to/source path/to/destination <== YOUR CASE 
    
    --filemap FILE  remap file names using contents of file