From: paulfred <paul.fredrickson@gmail.com>
To: git@vger.kernel.org
Subject: git-svn confused by "empty" (svn prop change) commit
Date: Wed, 19 Nov 2008 19:11:32 -0800 [thread overview]
Message-ID: <m28wrfhz17.fsf@gmail.com> (raw)
I've been using git and git-svn to commit to a central SVN repository for
the last several months. It's been working great so far, well enough that
I really, *really* don't want to go back.
But yesterday, someone committed a number of changes to svn:properties,
and there were no tree changes. git-svn now fails to dcommit anything,
instead giving me the following output:
$ git svn dcommit
Committing to https://project.com/svn/trunk ...
No changes
68af7eb26504e324cd6e3a2d50cd0562852a2dca~1 == 68af7eb26504e324cd6e3a2d50cd0562852a2dca
W: 68af7eb26504e324cd6e3a2d50cd0562852a2dca and refs/remotes/trunk differ, using rebase:
:040000 040000 7d76021c10cebf4a0b5c8fdf614bec8e66734a28 197442c7bd8c29cdd11f52ffb18fbd882d1c7f50 M eu
Current branch master is up to date.
# of revisions changed
before:
683a4ed53d8859f184733eaeebc6fcb904aa1e3b
10e85dc1c3b03b77dcabb53b26893b2d30bd56c5
07c1f476b6a5feae410e315cae57d878e898896d
27aad097ace7ec5db128032f29d775791463ddc7
[...several commits omitted...]
751e53e536c98bf9ee1bd8b876c56f06f6b6b059
after:
68af7eb26504e324cd6e3a2d50cd0562852a2dca
683a4ed53d8859f184733eaeebc6fcb904aa1e3b
10e85dc1c3b03b77dcabb53b26893b2d30bd56c5
07c1f476b6a5feae410e315cae57d878e898896d
27aad097ace7ec5db128032f29d775791463ddc7
[...all the same commits again omitted...]
751e53e536c98bf9ee1bd8b876c56f06f6b6b059
If you are attempting to commit merges, try running:
git rebase --interactive --preserve-merges refs/remotes/trunk
Before dcommitting
It's strange that it wanted to rebase, since I had already rebased on top of
remotes/trunk, and I have exactly one commit I'm trying to dcommit. After
rebasing, it appears to bail because 68af7e is in one list and not the other.
Well, 68af7e happens to be the commit with no tree changes, only svn property
changes. And yet "git branch --contains 68af7e" output includes master. (hmm,
but not remotes/trunk. Shouldn't it? master^ == remotes/trunk)
Anyway, git svn rebase continues to pull in new changes from everyone else,
but won't dcommit mine.
Based on a suggestion from irc, I tried --no-rebase, and got:
Attempting to commit more than one change while --no-rebase is enabled.
If these changes depend on each other, re-running without --no-rebase may be required. at /usr/local/libexec/git-core/git-svn line 447.
No changes
68af7eb26504e324cd6e3a2d50cd0562852a2dca~1 == 68af7eb26504e324cd6e3a2d50cd0562852a2dca
Unable to extract revision information from commit 683a4ed53d8859f184733eaeebc6fcb904aa1e3b~1
But I don't know what to do with that error message. Is it looking for the git-svn-id's?
Other (perhaps important) details: I created the repository several months
ago,and only recently put "[svn] noMetadata = true" in my config file because
I'm the only person on the team using git, and nobody else wanted to see the
git-svn-id messages.
This is git version 1.6.0.4.761.g47577 on OS X 10.5.
I suppose I could nuke everything and clone another shallow copy of the code
from some point after the bad commit, but I'd be happy with any kind of
work around that gets me dcommitting again.
Thanks!
--Paul
next reply other threads:[~2008-11-20 8:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-20 3:11 paulfred [this message]
2008-11-21 1:30 ` git-svn confused by "empty" (svn prop change) commit paulfred
2008-11-21 6:32 ` Sverre Rabbelier
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=m28wrfhz17.fsf@gmail.com \
--to=paul.fredrickson@gmail.com \
--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.