From: Matteo Bertini <naufraghi@develer.com>
To: Eric Wong <e@80x24.org>
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [PATCH/RFC 0/4] Add option to enable filters in git-svn
Date: Tue, 31 May 2016 22:34:46 +0200 [thread overview]
Message-ID: <cb49a08e3ec44f7d37603e5b1fe20a22@develer.com> (raw)
In-Reply-To: <20160531181241.GA28818@dcvr.yhbt.net>
Il 2016-05-31 20:12 Eric Wong ha scritto:
> Matteo Bertini <naufraghi@develer.com> wrote:
>> Sorry to all, but I missed a Checksum mismatch error, I'll have a
>> look and submit an update.
I've had a look, the problem is a missing smudge filter.
Unluckily the small svn revision range i was using was never updating
a filtered file.
The code actually uses `cat-file --batch` to get the blobs,
but the stored blob is not what SVN::TxDelta::apply need.
What I need is the smudged blob, but cat-file does not supports it.
I can modify cat-file with a new option to call
`convert_to_working_tree`,
and have the filters applied, for example --use-filters, that expects an
extra field, like $sha\t$path, in the stdin stream.
I don't like a lot putting an high level feature in a low level command,
but --textconv seems very similar to this.
Opinions or other suggestions?
> Sure, when you reroll can you also ensure lines are wrapped at
> 80 cols or less? (at least for the git-svn code, but probably
> for the rest of it, too).
Sure
> As for the option name, the "enable" prefix doesn't seem
> right. We already have some "use" prefixes (use-svm-props),
> so maybe "--use-filters" is better.
Ok
> I haven't looked into filters at all, yet, but you can probably
> use the existing rot13 filter in t0021 for writing tests.
Thanks for the pointer, I'll have a look.
--
Matteo Bertini - naufraghi@develer.com
Develer S.r.l. - http://www.develer.com/
.hardware .software .innovation
Tel.: +39 055 3986627 - ext.: 211
next prev parent reply other threads:[~2016-05-31 20:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-31 15:07 [PATCH/RFC 0/4] Add option to enable filters in git-svn Matteo Bertini
2016-05-31 15:07 ` [PATCH 1/4] hash-object.c: Allow distinct file/path in stdin mode too Matteo Bertini
2016-05-31 15:07 ` [PATCH 2/4] Git.pm: Add $path and $enable_filters arguments to hash_and_insert_object Matteo Bertini
2016-05-31 15:07 ` [PATCH 3/4] SVN/Fetcher.pm: Add svn-remote.<id>.enable-filters to enable the filters Matteo Bertini
2016-05-31 15:07 ` [PATCH 4/4] git-svn.perl: Add git svn init --enable-filters option Matteo Bertini
2016-05-31 15:34 ` [PATCH/RFC 0/4] Add option to enable filters in git-svn Matteo Bertini
2016-05-31 18:12 ` Eric Wong
2016-05-31 20:34 ` Matteo Bertini [this message]
2016-06-02 21:13 ` Eric Wong
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=cb49a08e3ec44f7d37603e5b1fe20a22@develer.com \
--to=naufraghi@develer.com \
--cc=e@80x24.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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).