From: Eric Wong <normalperson@yhbt.net>
To: Pazu <pazu@pazu.com.br>
Cc: git@vger.kernel.org
Subject: Re: git-svn fetch fails when a file is renamed changing only case
Date: Wed, 11 Oct 2006 10:42:20 -0700 [thread overview]
Message-ID: <20061011174220.GA32013@soma> (raw)
In-Reply-To: <ege016$vrb$1@sea.gmane.org>
Pazu <pazu@pazu.com.br> wrote:
> For example, if you had a file named TestFile and it's renamed to
> TESTFILE, git-svn fails to fetch revisions after the rename.
>
> My perl skills are close to non-existant, so I'm afraid I don't know how
> to fix this. Attached to this message, however, is a sample svn
> repository that can reproduce this bug. Just unpack it somewhere (let's
> say, in /tmp) and try the following:
>
> tar -C /tmp -xzf git-svn-rename-test.tar.gz
> mkdir test-wc
> cd test-wc
> git-svn init file:///tmp/git-svn-rename-test
> git-svn fetch
>
> The last command will fail after fetching revision #3, where a file
> named TestFile was renamed to TESTFILE. Here's the stack trace:
>
> svn: 'TestFile' is not under version control
> 256 at /Users/pazu/bin/git-svn line 2015
> main::safe_qx('svn', 'propget', 'svn:keywords',
> 'TestFile@BASE') called at /Users/pazu/bin/git-svn line 2154
> main::svn_propget_base('svn:keywords', 'TestFile') called at
> /Users/pazu/bin/git-svn line 1773
> main::do_update_index('ARRAY(0x180bd68)', 'remove', 'undef')
> called at /Users/pazu/bin/git-svn line 1805
> main::index_changes() called at /Users/pazu/bin/git-svn line 1875
> main::git_commit('HASH(0x180bd98)',
> 'c77db38dc752305ba19ebe19b22306551d0f8d52') called at
> /Users/pazu/bin/git-svn line 346
> main::fetch_cmd() called at /Users/pazu/bin/git-svn line 290
> main::fetch() called at /Users/pazu/bin/git-svn line 149
> I'm on Mac OS X (Intel) 10.4.8
Ah, the problem is that git-svn relies on git-diff-files and
git-ls-files to track changes when using the command-line svn client.
git itself is a case-sensitive file-system, but git-svn relies on the
working tree if you didn't have the SVN libraries, and successfully
stats the 'TestFile' even though it no longer exists (and is replaced
by 'TESTFILE').
Good to know that the SVN:: libraries are working for you, though.
--
Eric Wong
prev parent reply other threads:[~2006-10-11 17:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-09 17:13 git-svn fetch fails when a file is renamed changing only case Pazu
2006-10-09 21:52 ` Seth Falcon
2006-10-10 2:11 ` Pazu
2006-10-10 17:57 ` Pazu
2006-10-11 17:42 ` Eric Wong [this message]
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=20061011174220.GA32013@soma \
--to=normalperson@yhbt.net \
--cc=git@vger.kernel.org \
--cc=pazu@pazu.com.br \
/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).