Re: [PATCH] git-svn: fix fetch with deleted tag

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

 



On Sat, Aug 14, 2010 at 14:07, David D. Kilzer <ddkilzer@xxxxxxxxxx> wrote:

> +                       my ($url, undef, undef) = ::cmt_metadata($max_commit);

This can just be:

    my ($url) = ::cmt_metadata($max_commit);

Perl will throw the extra arguments away for you.

> +test_expect_success 'setup svn repo' '
> +       mkdir -p import/trunk/subdir &&
> +       mkdir -p import/branches &&
> +       mkdir -p import/tags &&
> +       echo "base" > import/trunk/subdir/file &&

Junio usually prefers the ">foo" style to "> foo".

> +       cd svn_project &&
> +
> +       echo "trunk change" >> subdir/file &&
> +       svn_cmd ci -m "trunk change" subdir/file &&
> +
> +       svn_cmd switch "$svnrepo/branches/mybranch/trunk" &&
> +       echo "branch change" >> subdir/file &&
> +       svn_cmd ci -m "branch change" subdir/file &&
> +
> +       cd .. &&

If you use a subshell here it'll cd back for you.

> +++ b/t/t9156-git-svn-fetch-deleted-tag-2.sh
> @@ -0,0 +1,45 @@
> +#!/bin/sh
> +
> +test_description='git svn fetch deleted tag 2'

Any reason not to include both of these in the same file? Just to
avoid having to manually reset the repository?

</nitpicks>
--
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]