{"thread":{"id":"12702","subject":"[PATCH] git-new-workdir: Share SVN meta data between work dirs and the repository","startedAt":"2008-03-15T02:44:13Z","lastAt":"2008-03-15T04:51:51Z","messageCount":2,"participants":["Bernt Hansen","Eric Wong"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"72157","messageId":"87ejaczoxu.fsf@gollum.intra.norang.ca","threadId":"12702","inReplyTo":null,"subject":"[PATCH] git-new-workdir: Share SVN meta data between work dirs and the repository","fromName":"Bernt Hansen","fromEmail":"bernt@norang.ca","sentAt":"2008-03-15T02:44:13Z","receivedAt":"2008-03-15T02:44:13Z","isPatch":true,"sender":{"key":"bernt@norang.ca","avatar":null},"body":"Multiple work dirs with git svn caused each work dir to have its own\nstale copy of the SVN meta data in .git/svn\n\ngit svn rebase updates commits with git-svn-id: in the repository and\nstores the SVN meta data information only in that work dir.  Attempting to\ngit svn rebase in other work dirs for the same branch would fail because\nthe last revision fetched according to the git-svn-id is greater than the\nrevision in the SVN meta data for that work directory.\n\nSigned-off-by: Bernt Hansen <bernt@norang.ca>\n---\n contrib/workdir/git-new-workdir |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/workdir/git-new-workdir b/contrib/workdir/git-new-workdir\nindex 2838546..7959eab 100755\n--- a/contrib/workdir/git-new-workdir\n+++ b/contrib/workdir/git-new-workdir\n@@ -63,7 +63,7 @@ mkdir -p \"$new_workdir/.git\" || die \"unable to create \\\"$new_workdir\\\"!\"\n # create the links to the original repo.  explictly exclude index, HEAD and\n # logs/HEAD from the list since they are purely related to the current working\n # directory, and should not be shared.\n-for x in config refs logs/refs objects info hooks packed-refs remotes rr-cache\n+for x in config refs logs/refs objects info hooks packed-refs remotes rr-cache svn\n do\n \tcase $x in\n \t*/*)\n-- \n1.5.4.4.537.gb75aa\n"},{"id":"72162","messageId":"20080315045151.GC3107@hand.yhbt.net","threadId":"12702","inReplyTo":"87ejaczoxu.fsf@gollum.intra.norang.ca","subject":"Re: [PATCH] git-new-workdir: Share SVN meta data between work dirs and the repository","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2008-03-15T04:51:51Z","receivedAt":"2008-03-15T04:51:51Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Bernt Hansen <bernt@norang.ca> wrote:\n> Multiple work dirs with git svn caused each work dir to have its own\n> stale copy of the SVN meta data in .git/svn\n> \n> git svn rebase updates commits with git-svn-id: in the repository and\n> stores the SVN meta data information only in that work dir.  Attempting to\n> git svn rebase in other work dirs for the same branch would fail because\n> the last revision fetched according to the git-svn-id is greater than the\n> revision in the SVN meta data for that work directory.\n> \n> Signed-off-by: Bernt Hansen <bernt@norang.ca>\n\nThanks, I've been meaning to add this myself\n\nAcked-by: Eric Wong <normalperson@yhbt.net>\n\n> ---\n>  contrib/workdir/git-new-workdir |    2 +-\n>  1 files changed, 1 insertions(+), 1 deletions(-)\n> \n> diff --git a/contrib/workdir/git-new-workdir b/contrib/workdir/git-new-workdir\n> index 2838546..7959eab 100755\n> --- a/contrib/workdir/git-new-workdir\n> +++ b/contrib/workdir/git-new-workdir\n> @@ -63,7 +63,7 @@ mkdir -p \"$new_workdir/.git\" || die \"unable to create \\\"$new_workdir\\\"!\"\n>  # create the links to the original repo.  explictly exclude index, HEAD and\n>  # logs/HEAD from the list since they are purely related to the current working\n>  # directory, and should not be shared.\n> -for x in config refs logs/refs objects info hooks packed-refs remotes rr-cache\n> +for x in config refs logs/refs objects info hooks packed-refs remotes rr-cache svn\n>  do\n>  \tcase $x in\n>  \t*/*)\n> -- \n> 1.5.4.4.537.gb75aa\n"}]}