2

どうすればこの問題を解決できますか?

私はsvnリポジトリにsmartgit/hgを使用していますが、トランクは1つだけで常に機能していました。その中で別のブランチを開始し、「Cherry-pic」を使用したので、次の問題があります。

Executing a command has failed.
svn: Verzeichnis "/trunk" ist veraltet

これは、「フォルダー/トランクが古くなっています」などを意味します

どうすればこれを解決できますか?

そのメッセージは何度も来る

これは私のツリーです: ここに画像の説明を入力

下の画面では、ログは次のようになります。

Synchronize: svn: Verzeichnis »/trunk« ist veraltet
HEAD is now at 347425d Merge remote-tracking branch 'refs/remotes/svn/trunk' into trunk
HEAD is now at 347425d Merge remote-tracking branch 'refs/remotes/svn/trunk' into trunk
Automatic merge went well; stopped before committing as requested
Already up-to-date!
Squash commit -- not updating HEAD
Automatic merge went well; stopped before committing as requested
Already up-to-date!
Squash commit -- not updating HEAD
Trying simple merge with d800a237bf659f59bfa63781afcede0a8a31e148
Trying simple merge with cecb0300061476beaf44b82ef3aebceb753ecb0a
Automatic merge went well; stopped before committing as requested
Squash commit -- not updating HEAD
Automatic merge went well; stopped before committing as requested
Already up-to-date!
Squash commit -- not updating HEAD
Automatic merge went well; stopped before committing as requested
Already up-to-date!
Squash commit -- not updating HEAD
Trying simple merge with 7c2851542517e5071a08c8170b8921bf1e02681e
Trying simple merge with e7da29419e447230a3fa434fadaf948e15c2c796
Automatic merge went well; stopped before committing as requested
Squash commit -- not updating HEAD
HEAD is now at 347425d Merge remote-tracking branch 'refs/remotes/svn/trunk' into trunk
4

1 に答える 1

2

プッシュ時に SmartGit は、git-svn-id 署名を持つコミットが満たされるまで、「最初の親」パスによって refs/heads/trunk から到達可能なコミットを送信します。通常、このコミットには「refs/remotes/svn/trunk」参照があります。

スクリーンショット (AFAIU) によると、「最初の親」パスによって到達可能なコミットは青い線上にありますが、「svn/trunk」参照はピンクの線上にあります。これは、「トランク」コミットの親が混乱していることを意味します。したがって、次のようにします

  1. 最後のマージ コミットを元に戻します。
  2. トランクがピンクの線上にあることを確認してください。そうでない場合は、「リセット...」コマンドを使用して「トランク」参照を svn/trunk に移動します。
  3. 外部の変更がないことを確認します (プル + リベース オプションを実行します)。
  4. 「青」ブランチを再度マージします。
  5. 押す
于 2013-05-27T16:01:25.367 に答える