git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [BUG] git-svn parses --pretty=medium log output, fails when log.decorate is true

From
Jeff King <peff@peff.net>
Date
Oct 5, 2010, 18:02 UTC
Message-ID
<20101005180214.GA12861@sigill.intra.peff.net>
In-Reply-To
<4CAB6620.4000909@debugon.org>
On Tue, Oct 05, 2010 at 07:53:36PM +0200, Mathias Lafeldt wrote:
Show 15 quoted lines
> > --- a/git-svn.perl
> > +++ b/git-svn.perl
> > @@ -1514,7 +1514,7 @@ sub cmt_sha2rev_batch {
> >  
> >  sub working_head_info {
> >  	my ($head, $refs) = @_;
> > -	my @args = ('log', '--no-color', '--first-parent', '--pretty=medium');
> > +	my @args = ('rev-list', '--first-parent', '--pretty=medium');
> >  	my ($fh, $ctx) = command_output_pipe(@args, $head);
> >  	my $hash;
> >  	my %max;
> 
> You're right. Using rev-list looks like a much cleaner solution.
> 
> In addition, I think we can replace the call to git-log in git_svn_log_cmd() too.

I don't think so. It uses diff options like "--raw --name-status" which rev-list does not support. I think it is not buggy, though, as it uses --format=raw.

-Peff
Previous: Mathias Lafeldt
Message 5 of 5 in “[BUG] git-svn parses --pretty=medium log output, fails when log.decorate is true”
  1. Will PalmerOct 5, 2010
  2. Mathias LafeldtOct 5, 2010
  3. Jeff KingOct 5, 2010
  4. Mathias LafeldtOct 5, 2010
  5. Jeff KingOct 5, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.