git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-new-workdir: Share SVN meta data between work dirs and the repository
@ 2008-03-15  2:44 Bernt Hansen
  2008-03-15  4:51 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Bernt Hansen @ 2008-03-15  2:44 UTC (permalink / raw)
  To: Julian Phillips; +Cc: Shawn O. Pearce, Eric Wong, git

Multiple work dirs with git svn caused each work dir to have its own
stale copy of the SVN meta data in .git/svn

git svn rebase updates commits with git-svn-id: in the repository and
stores the SVN meta data information only in that work dir.  Attempting to
git svn rebase in other work dirs for the same branch would fail because
the last revision fetched according to the git-svn-id is greater than the
revision in the SVN meta data for that work directory.

Signed-off-by: Bernt Hansen <bernt@norang.ca>
---
 contrib/workdir/git-new-workdir |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/workdir/git-new-workdir b/contrib/workdir/git-new-workdir
index 2838546..7959eab 100755
--- a/contrib/workdir/git-new-workdir
+++ b/contrib/workdir/git-new-workdir
@@ -63,7 +63,7 @@ mkdir -p "$new_workdir/.git" || die "unable to create \"$new_workdir\"!"
 # create the links to the original repo.  explictly exclude index, HEAD and
 # logs/HEAD from the list since they are purely related to the current working
 # directory, and should not be shared.
-for x in config refs logs/refs objects info hooks packed-refs remotes rr-cache
+for x in config refs logs/refs objects info hooks packed-refs remotes rr-cache svn
 do
 	case $x in
 	*/*)
-- 
1.5.4.4.537.gb75aa

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] git-new-workdir: Share SVN meta data between work dirs and the repository
  2008-03-15  2:44 [PATCH] git-new-workdir: Share SVN meta data between work dirs and the repository Bernt Hansen
@ 2008-03-15  4:51 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2008-03-15  4:51 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Julian Phillips, Shawn O. Pearce, git

Bernt Hansen <bernt@norang.ca> wrote:
> Multiple work dirs with git svn caused each work dir to have its own
> stale copy of the SVN meta data in .git/svn
> 
> git svn rebase updates commits with git-svn-id: in the repository and
> stores the SVN meta data information only in that work dir.  Attempting to
> git svn rebase in other work dirs for the same branch would fail because
> the last revision fetched according to the git-svn-id is greater than the
> revision in the SVN meta data for that work directory.
> 
> Signed-off-by: Bernt Hansen <bernt@norang.ca>

Thanks, I've been meaning to add this myself

Acked-by: Eric Wong <normalperson@yhbt.net>

> ---
>  contrib/workdir/git-new-workdir |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/contrib/workdir/git-new-workdir b/contrib/workdir/git-new-workdir
> index 2838546..7959eab 100755
> --- a/contrib/workdir/git-new-workdir
> +++ b/contrib/workdir/git-new-workdir
> @@ -63,7 +63,7 @@ mkdir -p "$new_workdir/.git" || die "unable to create \"$new_workdir\"!"
>  # create the links to the original repo.  explictly exclude index, HEAD and
>  # logs/HEAD from the list since they are purely related to the current working
>  # directory, and should not be shared.
> -for x in config refs logs/refs objects info hooks packed-refs remotes rr-cache
> +for x in config refs logs/refs objects info hooks packed-refs remotes rr-cache svn
>  do
>  	case $x in
>  	*/*)
> -- 
> 1.5.4.4.537.gb75aa

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-15  4:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-15  2:44 [PATCH] git-new-workdir: Share SVN meta data between work dirs and the repository Bernt Hansen
2008-03-15  4:51 ` Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).