From: Eli Barzilay <eli@barzilay.org>
To: git@vger.kernel.org
Cc: Eric Wong <normalperson@yhbt.net>
Subject: git-svn and subversion revprops
Date: Sun, 31 Jan 2010 06:39:03 -0500 [thread overview]
Message-ID: <19301.27607.993690.703245@winooski.ccs.neu.edu> (raw)
[This is possible an RTFM -- but as much as I've been digging around,
I couldn't find anything about it.]
I'm trying to play with git-svn in a project that uses subversion, and
there's one feature that I'd like to have -- make git-svn specify some
revision properties (eg, the `--with-revprop' to `svn commit') that
will identify it as coming from git-svn.
The thing is that we have a continuous build server that runs a
complete build (and runs all tests) for every revision -- and I'm
trying to figure out a way to make it skip intermediate commits that
come from a git-svn. The simplest way to do that would be a way to
mark all git-svn revisions somehow, and I can later unmark the last
one in the chain so only that one will get built and tested. It would
be even more convenient if I have a way to control the revprops on the
last commit separately, so there's no additional step involved.
The only other alternative that I see is some wrapper around git-svn
that connects to some script that will run on the server before and
after dcommitting changes, and that script will do the necessary work.
Is there a way to specify hook scripts to run around a dcommit?
Actually, such hooks can also be used to lock the svn reposity while
git-svn is working -- I couldn't figure out what happens when there's
some commit that comes in while git-svn is running. My guess is
that it'll either get stuck and throw an error, or maybe try to
continue if possible. Such hooks could make that part more robust, as
well as guarantee that each batch of svn-git commits are always
together.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
next reply other threads:[~2010-01-31 12:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-31 11:39 Eli Barzilay [this message]
2010-02-02 9:38 ` git-svn and subversion revprops Eric Wong
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=19301.27607.993690.703245@winooski.ccs.neu.edu \
--to=eli@barzilay.org \
--cc=git@vger.kernel.org \
--cc=normalperson@yhbt.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).