From: "João Abecasis" <joao@abecasis.name>
To: "Sam Vilain" <sam@vilain.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-svn: follow revisions of svm-mirrored repositories
Date: Tue, 17 Jun 2008 21:57:29 -0500 [thread overview]
Message-ID: <7bf6f1d20806171957k29dbdd4fh52c3b515e7b573d@mail.gmail.com> (raw)
In-Reply-To: <485589F5.6020409@vilain.net>
Hi Sam,
Thanks for your reply. I'm currently on the road so may be a little
slow to respond. Please bear with me.
Sam Vilain wrote:
>> When using an svk mirror repository as the source for git-svn,
>> find-rev and rebase don't work.
>>
>> find-rev takes a while, while it traverses and processes commit logs
>> for the branch, and ultimately fails with the error message: "Unable
>> to determine upstream SVN information from git-svn history". This
>> happens because find-rev doesn't relate information in the commit
>> messages to the internal svm-source revision maps.
>>
>> Similarly, rebase is faster but still exits with the message "Unable
>> to determine upstream SVN information from working tree history".
>>
>> The attached patch fixes a couple of underlying issues to get at least
>> these two commands working. AFAICT it still works well with plain svn
>> repositories.
>>
>> Can this be merged upstream? Any comments are welcome.
>
> Can you give an approximate series of commands that led to this not
> working? Just to clarify what happened. Ideally, it would be a test
> case; see if you can add it to the existing SVM test case. In fact this
> might be a regression compared to the original support, due to lack of
> tests - in which case it would be good to fix this "for good".
I haven't tried the test cases yet, but will look into it. Perhaps
that can also hammer out other places where svm-mirror support is
incomplete.
In the meantime, reproducing the 2 issues my patch is supposed to fix
is rather straightforward, but there could be something that I missed,
so here goes:
# Preparation, skipped informational messages.
$ git init
$ git svn init --use-svm-props -s file:///path/to/svk/repository/and/mirror/
# Populate repository
$ git svn fetch
# And the missing functionality.
$ git svn rebase
Unable to determine upstream SVN information from working tree history
$ git svn find-rev r5
Unable to determine upstream SVN information from HEAD history
And trying out the test case I just noticed an issue with my previous
patch, with misplaced // -- somehow it didn't show up in my previous
tests. I'll post an updated patch, shortly.
> Also, please try to send your patches inline if possible, or at least
> try to get them to be Content-Disposition: inline, it makes review
> easier for casual list subscribers.
I was worried that sending patches inlined would break the patch
because of line lengths and such, since I'm using Gmail's web
interface. Anyway, I'll try that we'll see how that goes.
Cheers,
João
next prev parent reply other threads:[~2008-06-18 2:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-14 4:02 [PATCH] git-svn: follow revisions of svm-mirrored repositories João Abecasis
2008-06-15 21:30 ` Sam Vilain
2008-06-18 2:57 ` João Abecasis [this message]
2008-06-18 2:58 ` João Abecasis
-- strict thread matches above, loose matches on Subject: below --
2008-06-26 16:24 João Abecasis
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=7bf6f1d20806171957k29dbdd4fh52c3b515e7b573d@mail.gmail.com \
--to=joao@abecasis.name \
--cc=git@vger.kernel.org \
--cc=sam@vilain.net \
/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 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).