From: Nick Woolley <nickwoolley@yahoo.co.uk>
To: git@vger.kernel.org
Subject: Bug in git-cvsexportcommit: can't commit files which have been removed from CVS
Date: Thu, 28 May 2009 17:53:24 +0100 [thread overview]
Message-ID: <4A1EC184.50107@yahoo.co.uk> (raw)
Hi,
I think I've discovered a bug in git-cvsexportcommit: where a file has been
removed from a CVS repository, it linger in the Attic and CVS perversely reports
them as 'no file X' with status 'Up-to-date'. git-cvsexportcommit then
prevents files from being added with the same name.
I have a patch against the current version of git's repository which seems to
fix the problem. This is actually three commits:
- the fix,
- an extension to t9200-git-cvsexportcommit.sh to test the fix
- EOL whitespace-removal
I'm hesitant to send all three as separate emails, even though the
SubmittingPatches document seems to imply I should - should I squash them into
one commit?
Anyway - to replicate the issue, create a CVS repository, add a file "x", then
remove it.
Then create a git repository tracking this CVS repository using git-cvsimport.
Pull the changes from CVS, then try adding a file "x", and exporting it back to
CVS. When I do that I get this error:
File x is already known in your CVS checkout -- perhaps it has
been added by another user. Or this may indicate that it exists on a
different branch. If this is the case, use -f to force the merge.
Status was: Up-to-date
Exiting: your CVS tree is not clean for this merge. at
/usr/lib/git-core/git-cvsexportcommit line 275.
When comitting, I also sometimes get warnings like this:
Huh? Status reported for unexpected file 'no file y'
These seem to be ignorable, but I think they also result from the above issue.
Cheers,
Nick
next reply other threads:[~2009-05-28 17:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-28 16:53 Nick Woolley [this message]
2009-05-28 20:06 ` Bug in git-cvsexportcommit: can't commit files which have been removed from CVS Jeff King
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=4A1EC184.50107@yahoo.co.uk \
--to=nickwoolley@yahoo.co.uk \
--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 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).