From: Michael J Gruber <git@drmicha.warpmail.net>
To: Andriy Gapon <avg@icyb.net.ua>
Cc: git@vger.kernel.org
Subject: Re: git-svn and svnsync
Date: Mon, 24 Nov 2008 18:15:41 +0100 [thread overview]
Message-ID: <492AE13D.5070102@drmicha.warpmail.net> (raw)
In-Reply-To: <492AA464.5070404@icyb.net.ua>
Andriy Gapon venit, vidit, dixit 24.11.2008 13:56:
> on 16/10/2008 11:07 Andriy Gapon said the following:
>> I did the following:
>> 1. mirror svn repository using svnsync
>> 2. clone the mirror with git-svn --use-svnsync-props and some tweaking[*]
>> 3. run git svn info in the clone
>> 4. get error "Unable to determine upstream SVN information from working
>> tree history"
>>
>> git svn log and git svn rebase do not work either.
>> git log does work.
>>
>> I have git version 1.6.0.2 (from FreeBSD ports).
>> [*] About the tweaking - I manually massaged config file to get the
>> branches I was interested in, so .git/config is this:
>> [core]
>> repositoryformatversion = 0
>> filemode = true
>> bare = false
>> logallrefupdates = true
>> [svn-remote "svn"]
>> useSvnsyncProps = 1
>> url = file:///system/devel/svn/base
>> fetch = head:refs/remotes/trunk
>> fetch = stable/6:refs/remotes/stable_6
>> fetch = stable/7:refs/remotes/stable_7
>> fetch = releng/6.3:refs/remotes/releng_6_3
>> fetch = releng/6.4:refs/remotes/releng_6_4
>> fetch = releng/7.0:refs/remotes/releng_7_0
>> fetch = release/6.3.0:refs/remotes/release_6_3_0
>> fetch = release/7.0.0:refs/remotes/release_7_0_0
>>
>> This is .git/svn/.metadata:
>> ; This file is used internally by git-svn
>> ; You should not have to edit it
>> [svn-remote "svn"]
>> reposRoot = file:///system/devel/svn/base
>> uuid = ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
>> svnsync-uuid = ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
>> svnsync-url = svn://svn.freebsd.org/base
>>
>> So you can see the original svn repository URL.
>>
>> git log reports svn info like the following:
>> git-svn-id: svn://svn.freebsd.org/base/stable/7@183898
>> ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
>>
>> It seems that the problem is that the code in find_by_url() and/or
>> read_all_remotes() subroutines (in git-svn.perl) are not aware of
>> svnsync and do not realize an URL in logs and URL in svn-remote are
>> different.
>> BTW, I see that there is some special svm logic in read_all_remotes.
>>
>> Thank you very much for any help in advance.
>>
>
> Anyone?
> I wonder if this is my local problem/misconfiguration or an issue with
> git-svn.
Same happens here, so it's a general issue ;)
I think I encountered that before and ended up experimenting with
git-svn cloning from a svnsync source until I found the final config,
with which I git-svn cloned directly from upstream, so that I had to
wait only twice.
Michael
next prev parent reply other threads:[~2008-11-24 17:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-16 8:07 git-svn and svnsync Andriy Gapon
2008-11-24 12:56 ` Andriy Gapon
2008-11-24 17:15 ` Michael J Gruber [this message]
2008-11-24 17:33 ` Andriy Gapon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=492AE13D.5070102@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=avg@icyb.net.ua \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.