Re: [PATCH] Remove duplication in t9119-git-svn-info.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Wong <normalperson@xxxxxxxx> writes:

> Junio C Hamano <gitster@xxxxxxxxx> wrote:
>> "David D. Kilzer" <ddkilzer@xxxxxxxxxx> writes:
>> 
>> > @@ -350,8 +355,8 @@ test_expect_success 'info unknown-symlink-directory' "
>> >  	cd svnwc &&
>> >  		ln -s unknown-directory unknown-symlink-directory &&
>> >  	cd .. &&
>> > -	ptouch gitwc/unknown-symlink-directory \
>> > -	       svnwc/unknown-symlink-directory &&
>> > +	ptouch svnwc/unknown-symlink-directory \
>> > +	       gitwc/unknown-symlink-directory &&
>> 
>> Hmph.  Am I the only one who finds this repetition somewhat
>> disturbing?
>
> "David D. Kilzer" <ddkilzer@xxxxxxxxxx> wrote:
>> Simplify arguments to ptouch bash function.
>
> Not reading Junio's mind, I think he meant that you were swapping the
> "gitwc/" and "svnwc/" args everywhere in your changeset.

Yeah, that was what I meant.  ptouch routine's implementation
could have swapped the order of arguments internally.

The follow-up patch by David makes ptouch routine unusable if
the test suite becomes more elaborate and starts using more than
one git and svn work trees, but I do not think that is something
we have to worry about too much.


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux