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

Re: [PATCH] Add git svn gc command

From
Ddemerphq <demerphq@gmail.com>
Date
Jul 20, 2009, 09:02 UTC
Message-ID
<9b18b3110907200202kbb78c8dm43e0451900e4f2fb@mail.gmail.com>
In-Reply-To
<20090720083621.GA3237@dcvr.yhbt.net>
2009/7/20 Eric Wong <normalperson@yhbt.net>:
Show 20 quoted lines
> demerphq <demerphq@gmail.com> wrote:
>> 2009/7/20 Eric Wong <normalperson@yhbt.net>:
>> > Robert Zeh <robert.a.zeh@gmail.com> wrote:
>> >> --- a/git-svn.perl
>> >> +++ b/git-svn.perl
>> >> @@ -35,11 +35,14 @@ push @Git::SVN::Ra::ISA, 'SVN::Ra';
>> >>  push @SVN::Git::Editor::ISA, 'SVN::Delta::Editor';
>> >>  push @SVN::Git::Fetcher::ISA, 'SVN::Delta::Editor';
>> >>  use Carp qw/croak/;
>> >> +use Compress::Zlib;
>> >
>> > I'd "require" Compress::Zlib lazilly so it's not loaded at startup.
>> > It's not a stock component of Perl and not needed for the majority of
>> > commands.
>>
>> Actually, it has been a core component since 5.9.3
>
> Ah thanks for pointing that out, I didn't notice my 5.10.x install had
> it.  Nevertheless, git svn needs to continue supporting 5.8.x for a
> while longer.
I guess something like:
my $can_compress= eval "require Compress::Zlib; 1";
would be the right solution.
-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
Previous: Eric WongNext: Thomas Rast
Message 5 of 8 in “Add git svn gc command”
  1. Add git svn gc commandRobert Zeh, Jul 19, 2009
  2. Eric WongJul 20, 2009
  3. demerphqJul 20, 2009
  4. Eric WongJul 20, 2009
  5. demerphqJul 20, 2009
  6. Thomas RastJul 20, 2009
  7. demerphqJul 20, 2009
  8. Eric WongJul 21, 2009

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.