git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Shawn O. Pearce" <spearce@spearce.org>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Robin Rosenberg <robin.rosenberg@dewire.com>, git@vger.kernel.org
Subject: Re: [JGIT PATCH] Create a debugging tool "jgit rebuild-commitgraph"
Date: Fri, 13 Mar 2009 07:52:51 -0700	[thread overview]
Message-ID: <20090313145250.GD22920@spearce.org> (raw)
In-Reply-To: <alpine.DEB.1.00.0903131549200.6288@intel-tinevez-2-302>

Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> On Fri, 13 Mar 2009, Shawn O. Pearce wrote:
> 
> > This is a command line tool which can be used to import only
> > the commit graph of another Git repository, to help debug a
> > topology related bug, without actually needing a clone of the
> > problematic repository.
> > 
> > Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
> > ---
> > 
> >  I used this yesterday to obtain a DAG from someone's private
> >  repository and recreate the same structure on my own system,
> >  to debug why RevWalk was busted in their case.
> 
> Heh:
> 
> http://repo.or.cz/w/git/dscho.git?a=blob;f=my-fake-history.sh;h=e108ce99a5ebd75230c3cfc56b88d9769fec8bc1;hb=master

Heh.  I knew both you and Nico have written something like this in
the past, but I couldn't find it.

Your script is almost what I needed.  But I also needed to force
GIT_COMMITTER_DATE to match the timestamp, as I suspected the commit
times had something to do with the problem I was seeing.

I also whack the entire ref space to match the source repository,
which mattered because I was trying to debug:

  git rev-list $insha1 --not --all

in JGit...

-- 
Shawn.

  reply	other threads:[~2009-03-13 14:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-13 14:35 [JGIT PATCH] Create a debugging tool "jgit rebuild-commitgraph" Shawn O. Pearce
2009-03-13 14:49 ` Johannes Schindelin
2009-03-13 14:52   ` Shawn O. Pearce [this message]
2009-03-15 11:34 ` Robin Rosenberg
2009-03-16 14:44   ` Shawn O. Pearce
2009-03-16 20:09     ` Robin Rosenberg
2009-03-16 20:13       ` Shawn O. Pearce
2009-03-16 23:58         ` [JGIT PATCH v3] Create a debugging tool "jgit debug-rebuild-commitgraph" Shawn O. Pearce

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=20090313145250.GD22920@spearce.org \
    --to=spearce@spearce.org \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=robin.rosenberg@dewire.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).