From: Victor Leschuk <vleschuk@gmail.com>
To: Eric Wong <normalperson@yhbt.net>
Cc: git@vger.kernel.org, vleschuk@accesssoftek.com
Subject: Re: [PATCH 2/2] git-svn: test for git-svn prefixed globs
Date: Thu, 17 Dec 2015 00:31:23 +0300 [thread overview]
Message-ID: <5671D82B.8020107@gmail.com> (raw)
In-Reply-To: <20151216212811.GA19884@dcvr.yhbt.net>
Hello Eric, sorry, I just copy pasted your old t9108-git-svn-glob.sh,
changed branch names to be prefixed and added test for "exact" prefix
match. If it is necessary I can rewrite it according to current guidelines.
On 12/17/2015 12:28 AM, Eric Wong wrote:
> Thanks for this work. Most things look fine with 1/2, comments
> on 2/2 below...
>
> Victor Leschuk <vleschuk@gmail.com> wrote:
>> Add test for git-svn prefixed globs.
> Why a separate patch? Unless there's some documentation purpose
> for a regression, usually tests and a feature should be added
> atomically in the same commit.
>
>> --- /dev/null
>> +++ b/t/t9168-git-svn-prefixed-glob.sh
>> @@ -0,0 +1,136 @@
>> +#!/bin/sh
>> +test_description='git svn globbing refspecs with prefixed globs'
>> +. ./lib-git-svn.sh
>> +
>> +cat > expect.end <<EOF
> We prefer redirects in new code to be in the form of ">foo" (no space)
> (or ">>foo" for append).
>
> It wasn't in the old tests, either, but Documentation/CodingGuidelines
> favors this for new code.
>
>> +the end
>> +hi
>> +start a new branch
>> +initial
>> +EOF
> All the setup code be checked for errors with '&&' as well.
>
>> + test "`git rev-parse refs/remotes/tags/t_end~1`" = \
>> + "`git rev-parse refs/remotes/branches/b_start`" &&
>> + test "`git rev-parse refs/remotes/branches/b_start~2`" = \
>> + "`git rev-parse refs/remotes/trunk`" &&
> And we prefer $(command) instead of `command` for nestability
> as Documentation/CodingGuidelines suggests.
>
> (yeah, most of the old tests don't follow the guidelines, but the
> guidelines also warn against fixup patches for them).
>
> Thanks again.
next prev parent reply other threads:[~2015-12-16 21:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-16 13:01 [PATCH 0/2] git-svn: add support for prefixed globs in config Victor Leschuk
2015-12-16 13:01 ` [PATCH 1/2] git-svn: " Victor Leschuk
2015-12-16 13:01 ` [PATCH 2/2] git-svn: test for git-svn prefixed globs Victor Leschuk
2015-12-16 21:28 ` Eric Wong
2015-12-16 21:31 ` Victor Leschuk [this message]
2015-12-17 0:32 ` 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=5671D82B.8020107@gmail.com \
--to=vleschuk@gmail.com \
--cc=git@vger.kernel.org \
--cc=normalperson@yhbt.net \
--cc=vleschuk@accesssoftek.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.