summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6111b93)
raw | patch | inline | side by side (parent: 6111b93)
author | Thomas Rast <trast@student.ethz.ch> | |
Mon, 16 Nov 2009 10:15:17 +0000 (11:15 +0100) | ||
committer | Eric Wong <normalperson@yhbt.net> | |
Tue, 17 Nov 2009 07:33:58 +0000 (23:33 -0800) |
git-svn has the following rule to detect the SVN base for its
operations: find the first git-svn-id line reachable through
first-parent ancestry. IOW,
git log --grep=^git-svn-id: --first-parent -1
Document this, as it is very important when using merges with git-svn.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
operations: find the first git-svn-id line reachable through
first-parent ancestry. IOW,
git log --grep=^git-svn-id: --first-parent -1
Document this, as it is very important when using merges with git-svn.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Documentation/git-svn.txt | patch | blob | history |
index db00ed43b74c0e3e7187eba6abc9bbb5562669d4..4cdca0d87435b4995e5c051750a6dd02720006f8 100644 (file)
that is a mirror of an SVN branch, 'dcommit' may commit to the wrong
branch.
+If you do merge, note the following rule: 'git svn dcommit' will
+attempt to commit on top of the SVN commit named in
+------------------------------------------------------------------------
+git log --grep=^git-svn-id: --first-parent -1
+------------------------------------------------------------------------
+You 'must' therefore ensure that the most recent commit of the branch
+you want to dcommit to is the 'first' parent of the merge. Chaos will
+ensue otherwise, especially if the first parent is an older commit on
+the same SVN branch.
+
'git clone' does not clone branches under the refs/remotes/ hierarchy or
any 'git svn' metadata, or config. So repositories created and managed with
using 'git svn' should use 'rsync' for cloning, if cloning is to be done