Hi:

On Thu, Jun 26, 2008 at 2:18 AM, Alexander Groß <[EMAIL PROTECTED]> wrote:

> Today the company installed a new SVN server that has a new
> server URL. The existing SVN repos were migrated to the server, so that the
> repo UUIDs stay the same and a "svn switch --relocate" works.

Are you looking for the equivalent "relocate" command for git-svn?

I don't think "git svn" supports "relocate". The development logs for
git-svn.perl and perl/Git.pm do not mention this word or concept.

> b) Git obviously determines the SVN URL by scanning the log for the last
GIT_SVN_ID.

Yeah, poking around git-svn.perl::working_head_info reveals that only
commit info metadata is used to get the URL, not .git/config or
.git/svn/.metadata. Why.

> The Git docs say that I could force the GIT_SVN_ID by using the "--id"
> switch with dcommit, but msysgit 1.5.5 seems to ignore the switch, either
> because it's not implemented (as it does not show up in the list of switches
> when entering "git svn") or I supply the GIT_SVN_ID in a wrong format (I
> couldn't find any information on the format itself).

How is your Perl? ;-)

GIT_SVN_ID and --id is useful when you are tracking multiple upstream
SVN repos in one git working dir. GIT_SVN_ID is set to "git-svn" by
default, so it tracks the refs/remotes/git-svn tip by default. In
other words, GIT_SVN_ID is not what you need.

> Sorry to put this on the dev mailing list, but I think you could help.

How have you determined this is a msysgit issue and not an upstream issue? ;-)
I have tried this on git 1.5.5 @ Ubuntu and it also fails in the same way.

One way forward in your specific case would be to probably transfer
the commits from your old working dir to a newly checked out working
dir. When I say transfer I probably mean using something like git
format-patch (export to patches) and git am (import from patches).

Another way forward would be to use git filter-branch --commit-filter
to redefine the svn metadata (the "git-svn-id" line) in every commit
of HEAD (or just the last sync'd commit?) and reattempt git svn
dcommit. However, filter-branch is not yet working in msysgit. :-/

Best regards,
Clifford Caoile

Reply via email to