From: Jeff King <peff@peff.net>
To: mike@nahas.com
Cc: Jon Seymour <jon.seymour@gmail.com>, git@vger.kernel.org
Subject: Re: Rebase and incrementing version numbers
Date: Tue, 24 Jan 2012 21:09:03 -0500 [thread overview]
Message-ID: <20120125020903.GA21535@sigill.intra.peff.net> (raw)
In-Reply-To: <CAH3Anro8T4SJqBvw1E_7u__4kYyB6hMCYPbtHSVxkgSUYSb2+A@mail.gmail.com>
On Fri, Jan 20, 2012 at 08:33:57AM +1100, Jon Seymour wrote:
> I wonder if you can defer your changes to the config files until after
> you have synced with the current SVN head, so that you typically only
> modify the latest configuration file. Then use git to work out what
> numbers you have to update (by working out which files you changed
> that the SVN upstream has not seen yet). Not perfect, because of race
> conditions, and may not work with your integration testing processes,
> but perhaps worth considering.
That was my thought, too (assuming this workflow, which seems slightly
insane, is outside your power to change).
In this list here:
> Something like:
>
> 1. pull latest SVN
> 2. work on file
> 3. test. skip back to 2 until done.
> 4. ready to push to upstream
> 5. pull latest SVN
> 6. calculate configuration changes required
> 7. apply configuration changes
> 8. push work + configuration changes upstream
Steps 5 and 8 are basically "git svn dcommit". I suspect you could use
some combination of "git svn rebase" and "git filter-branch" to rewrite
your commits with the right counters, and then dcommit the result
(hopefully fast enough to avoid races).
-Peff
prev parent reply other threads:[~2012-01-25 2:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CADo4Y9jGYJasDL9m7_50aOTrOyoezdyg=vcsZhQ87Qk-1XfTUQ@mail.gmail.com>
2012-01-19 17:20 ` Rebase and incrementing version numbers Michael Nahas
2012-01-19 18:12 ` demerphq
2012-01-19 18:48 ` Michael Nahas
2012-01-19 19:58 ` PJ Weisberg
2012-01-19 20:06 ` Michael Nahas
2012-01-19 23:31 ` Santi Béjar
2012-01-25 2:18 ` John Szakmeister
2012-01-19 19:20 ` Carlos Martín Nieto
2012-01-19 20:02 ` Michael Nahas
2012-01-20 15:53 ` Carlos Martín Nieto
2012-01-25 10:32 ` Christian Couder
2012-01-25 10:53 ` Carlos Martín Nieto
2012-01-25 11:18 ` Christian Couder
2012-01-19 21:07 ` Jehan Bing
2012-01-19 21:33 ` Jon Seymour
2012-01-25 2:09 ` Jeff King [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=20120125020903.GA21535@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=jon.seymour@gmail.com \
--cc=mike@nahas.com \
/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).