threads / discuss / 17448

question re dcommit problem

Subject: question re dcommit problem

## tl;dr

3 messages between Jan 30, 2009 and Jan 30, 2009.

replies: 2people: 3as markdown or json

David Mann· Jan 30, 2009, 00:14 UTC · lore

I created a git repository from my svn repository, later uploaded it to GitHub, and after some branching and merging, can no longer dcommit back to the svn repository. I notice that somewhere along the way the git-svn-id: messages no longer appear on my master branch. When I try to git svn dcommit I get weird messages like this:

mannd@SuperSluggo:~/dev/git/epsimulator> git svn dcommit Committing to https://epsimulator.svn.sourceforge.net/svnroot/epsimulator/epsimulator/trunk ... Filesystem has no item: File not found: transaction '435-24', path '/epsimulator/trunk/epsimulator.kdevses' at /home/mannd/libexec/git-core/git-svn line 480

Any way to fix this? If not, I will just abandon SVN and stick with git, which I really enjoy using.

Thanks, David Mann

Nico -telmich- Schottelius· Jan 30, 2009, 08:42 UTC · re: David Mann · lore

Re: question re dcommit problem

David Mann [Thu, Jan 29, 2009 at 07:14:08PM -0500]:
> I created a git repository from my svn repository, later uploaded it to
> GitHub, and after some branching and merging, can no longer dcommit back
> to the svn repository. [...]

Iirc git svn does not support merges. You've to use git rebase or update through the svn server.

Sincerly,
Nico
-- 
Think about Free and Open Source Software (FOSS).
http://nico.schottelius.org/documentations/foss/the-term-foss/

PGP: BFE4 C736 ABE5 406F 8F42  F7CF B8BE F92A 9885 188C
Thomas Rast· Jan 30, 2009, 21:43 UTC · re: Nico -telmich- Schottelius · lore

Re: question re dcommit problem

Nico -telmich- Schottelius wrote:
Show 7 quoted lines
> David Mann [Thu, Jan 29, 2009 at 07:14:08PM -0500]:
> > I created a git repository from my svn repository, later uploaded it to
> > GitHub, and after some branching and merging, can no longer dcommit back
> > to the svn repository. [...]
> 
> Iirc git svn does not support merges. You've to use git rebase or
> update through the svn server.

It does support them on the git side. To SVN, the merge should look like the squashed result (along the first-parent line). On your local git end, it should rebase the merge (to allow for git-svn-id) but preserve parents, thus keeping history.

However, it is very important that the SVN line of history is always reachable along the first-parent line. David, did you ensure that?

-- 
Thomas Rast
trast@{inf,student}.ethz.ch

← back to recent threads