git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [PATCH] git-svn: allow dcommit to retain local merge information
@ 2007-06-23 17:56 Tjernlund
  0 siblings, 0 replies; 10+ messages in thread
From: Tjernlund @ 2007-06-23 17:56 UTC (permalink / raw)
  To: 'Steven Grimm', 'Eric Wong'; +Cc: 'Junio C Hamano', git

> > $ echo post-merge trunk change >> trunk/testfile1
> > $ svn commit -m "trunk change after merge"
> > $ echo post-merge conflicting change >> trunk/testfile2
> > $ svn commit -m "trunk change with conflict"
> > $ cd ../gitclone
> > $ git-svn fetch
> > $ git merge -m "change with conflict" trunk
> > 
> > Conflict, as expected
> > 
> > $ vi testfile2
> > $ git add testfile2
> > $ git commit
> > $ git-svn dcommit
> > Transaction is out of date: Out of date: '/trunk/testfile1' in 
> > transaction '9-1' at /Users/koreth/git/git-svn line 398
> 
> Maybe this can help?
> http://svn.haxx.se/subusers/archive-2005-02/0096.shtml
> http://subclipse.tigris.org/faq.html#out-of-date

Could this be related to do_update vs. do_switch?
Latest subversion appears to have a working
do_switch function.   


Jocke

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: git-svn set-tree bug
@ 2007-06-10 23:37 Steven Grimm
  2007-06-10 23:55 ` Joakim Tjernlund
  0 siblings, 1 reply; 10+ messages in thread
From: Steven Grimm @ 2007-06-10 23:37 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: 'Eric Wong', 'git'

Joakim Tjernlund wrote:
> Is there a way to tell set-tree to commit the whole "merge" branch
> as one svn commit?
> If I merge the latest kernel into my tree there will
> be a lot of commits that I don't want in svn.
>   

You want a "squash" merge. Something like this:

git checkout -b tempbranch origin/svn-branch-to-commit-merge-to
git merge --squash branch-with-commits-you-want-to-merge
git commit
git svn dcommit

The "merge" command will merge in the changes but will not commit 
anything; when you do the explicit "commit" command afterwards, you get 
the contents of the merge but from git's point of view it's just a 
regular commit so git-svn doesn't get confused.

After you do git svn dcommit, you may want to edit .git/info/grafts to 
tell git after the fact that this commit was a merge. It won't hurt 
git-svn at that point and it will mean you can do another merge later 
without git getting confused about what has already been merged.

Take a look at the script I posted a while back, which does something 
similar:

http://www.spinics.net/lists/git/msg29119.html

-Steve

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

end of thread, other threads:[~2007-07-01 13:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-23 17:56 [PATCH] git-svn: allow dcommit to retain local merge information Tjernlund
  -- strict thread matches above, loose matches on Subject: below --
2007-06-10 23:37 git-svn set-tree bug Steven Grimm
2007-06-10 23:55 ` Joakim Tjernlund
2007-06-11  4:25   ` Eric Wong
2007-06-11  5:52     ` Junio C Hamano
2007-06-12  7:20       ` Eric Wong
2007-06-12  7:34         ` Junio C Hamano
2007-06-12  8:39           ` Eric Wong
2007-06-13  9:23             ` [PATCH] git-svn: allow dcommit to retain local merge information Eric Wong
2007-06-13 17:13               ` Joakim Tjernlund
2007-06-13 23:17                 ` Joakim Tjernlund
2007-06-20  7:04                   ` Eric Wong
2007-06-20  6:56                 ` Eric Wong
2007-06-21 16:54                   ` Joakim Tjernlund
2007-07-01 13:09                   ` Joakim Tjernlund
2007-06-14  6:30               ` Steven Grimm
2007-06-22 11:55                 ` Joakim Tjernlund

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).