All of lore.kernel.org
 help / color / mirror / Atom feed
* Towards CVS code-exchange and gateways
@ 2005-10-25 20:57 Martin Langhoff
  2005-10-26  0:25 ` Junio C Hamano
  2005-10-26  3:35 ` Martin Langhoff
  0 siblings, 2 replies; 6+ messages in thread
From: Martin Langhoff @ 2005-10-25 20:57 UTC (permalink / raw)
  To: Git Mailing List

Now that I have a few cvs2git gateways (git-cvsimport running on cron)
for the projects we work on, I am starting to need tools to "replay"
chunks of git history against external CVS repositories. So I am
thinking of writing two new scripts which expect to be executed inside
a CVS working copy:

 + "git-cvsapplypatch < patchfile" takes a patch as formatted by
git-format-patch, apply using patch (with options to be strict of
fuzzy), prepares the commit message and (optionally) autocommit if
patch returned clean.

 + "GIT_DIR=~/foo/bar/.git git-cvsreplaycommit parent:child" takes a
pair of git revisions that must be parent/child, applies the diff on
text files and changes on binary objects. Prepares the commit message
and (optionally) autocommits if the merge was clean.

Which should lead later to a git-cvsapplymbox script to automate the
process further. This part of the automation is actually a bit scary:
with git, all your scripted merges take place in your private repo,
and you review the result of the whole patchrun before pushing it out
to a public repo. With cvs, if the merge turns out to apply cleanly
but be a really bad idea... it'll be way too late. I hope to be able
to find a smart way to run it in "test" mode.

Is there anyone working on a git -> cvs gateway or similar scripts?

cheers,


martin

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-10-26 20:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-25 20:57 Towards CVS code-exchange and gateways Martin Langhoff
2005-10-26  0:25 ` Junio C Hamano
2005-10-26  3:35 ` Martin Langhoff
2005-10-26  8:53   ` Petr Baudis
2005-10-26  9:11     ` Martin Langhoff
2005-10-26 20:51       ` Petr Baudis

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.