主幹/分支我一直在負責工作的組織爲SVN倉庫分支如下:顛覆時埋在樹
REPO_ROOT
|-AAA
|-BBB
|-DDD
|-D1
|-D2
|-software
|-branches
|-tags
|-trunk
|-YYY
|-ZZZ
我在^/DDD/software/trunk
工作居多。現在我想創建一個分支來在^/DDD/software/branches/error-fixing
處做一些錯誤修正。
首先我創建並提交了不存在的^/DDD/software/branches/error-fixing
目錄。然後我使用以下命令創建了一個trunk分支:$ svn copy svn+ssh://[email protected]/REPO_ROOT/DDD/software/trunk svn+ssh://[email protected]/REPO_ROOT/DDD/software/branches/error-fixing -m "Branching from trunk to error-fixing"
。
現在我需要切換到正確的分支。我在trunk
裏面,使用命令$ svn switch "^/DDD/software/branches/error-fixing" .
,但是這樣做失敗svn: E195012: Path '.' does not share common version control ancestry with the requested switch location.
如何切換到分支? (第一次我這樣做,所以我可能做錯了什麼。)
我發現問題出在哪裏,不過謝謝你! (在回答中公佈了更正。) – Daniel