merge -r0..-1
명령으로 수행 할 수 있습니다. 그러나 파일을 다른 하위 폴더에 저장하려면 병합하기 전에 파일을 저장하는 것이 좋습니다.
main
구성 요소와 두 개의 하위 구성 요소 인 foo
및 bar
이 있다고 가정 해 보겠습니다.
ProjectRoot/
main.txt <-- any files from main component
... should be at the root of the project
...
bar/ <-- bar subdirectory with files from bar component
foo/ <-- foo subdirectory with files from foo component
우리는 main
에 foo
및 bar
을 병합합니다 : 당신은 당신의 새로운 결합 된 프로젝트는 다음과 같은 구조를 갖고 싶어. bar
에 대한
cd /path/to/foo
bzr mkdir foo
bzr mv file1 file2 foo
bzr commit -m "files moved into foo/ subdirectory"
과 유사한 :하지만 먼저의 하위 디렉터리에 파일을 이동하자
cd /path/to/bar
bzr mkdir bar
bzr mv file3 file4 bar
bzr commit -m "files moved into bar/ subdirectory"
이제 우리는
main
에 모든 것을 통합 할 준비가 :
cd /path/to/main
# ensure the working tree does not have uncommitted changes
bzr status
# now merge foo
bzr merge -r0..-1 /path/to/foo
# if there is no conflicts then you can commit this part
bzr status
bzr commit -m "merged foo component"
# now merge bar
bzr merge -r0..-1 /path/to/bar
# if there is no conflicts then you can commit this part
bzr status
bzr commit -m "merged bar component"
그 후 main
것 foo
및 bar
이 병합되었습니다.
'bzr join' 명령을 사용해 보셨습니까? – dOxxx
예, 시도했습니다. 그리고이 버그/기능을 누르십시오 : https://bugs.launchpad.net/bzr/+bug/370710 – HRJ
"bzr join"을 실행하기 전에 업그레이드를 시도 했습니까? – jelmer