From: Stephen Bash <bash@genarts.com>
To: git@vger.kernel.org
Subject: git-cherry like operation for SVN imports
Date: Fri, 25 Feb 2011 10:43:10 -0500 (EST) [thread overview]
Message-ID: <5213723.55273.1298648590311.JavaMail.root@mail.hq.genarts.com> (raw)
In-Reply-To: <26101193.54947.1298648399611.JavaMail.root@mail.hq.genarts.com>
Hi all-
At my day job we've got about 17k commits in our Git repository (covering ~13 years) that were imported from Subversion. Recently we've had a few regression issues come up that we thought were fixed in older (pre-Git) releases, and we're having a hard time pinning down if/when they got merged back to the mainline development branch.
In a pure Git world, I would use either git branch --contains or git-cherry...
Unfortunately during our SVN->Git process we didn't have SVN mergeinfo, so none of the Subversion merges were captured in Git (the diffs are correct, but the DAG is not). So right away git {branch,tag} --contains is out the window (I think). The next obvious choice is git-cherry, but (at least in our process) SVN merges are a single commit that roll up a series of diffs so the patch-id of the merge doesn't match the patch-id of the original commit (at least I haven't found a way to make this work).
One possible solution proposed by a coworker was do something like patch-id, but at the hunk level. This has promise, but I'm not convinced that the hunks showing up in the merge commit would match those in the original (but I'm no expert when it comes to diff logic).
Does anyone have any experience with this type of problem? Any suggestions on how we can make this work?
Thanks,
Stephen
next parent reply other threads:[~2011-02-25 15:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <26101193.54947.1298648399611.JavaMail.root@mail.hq.genarts.com>
2011-02-25 15:43 ` Stephen Bash [this message]
2011-02-27 14:36 ` git-cherry like operation for SVN imports Michael J Gruber
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=5213723.55273.1298648590311.JavaMail.root@mail.hq.genarts.com \
--to=bash@genarts.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 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).