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

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

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Aug 14, 2010, 14:52 UTC
Message-ID
<AANLkTinpLUyQP=6XktduWAmSHg3CgcT3Y7cMJ9FQ4by_@mail.gmail.com>
In-Reply-To
<1281794831-33347-1-git-send-email-ddkilzer@kilzer.net>
On Sat, Aug 14, 2010 at 14:07, David D. Kilzer <ddkilzer@kilzer.net> 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.
Show 5 quoted lines
> +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".
Show 10 quoted lines
> +       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.
Show 5 quoted lines
> +++ 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>
Previous: David D. KilzerNext: David D. Kilzer
Message 2 of 5 in “git-svn: fix fetch with deleted tag”
  1. git-svn: fix fetch with deleted tagDavid D. Kilzer, Aug 14, 2010
  2. Ævar Arnfjörð BjarmasonAug 14, 2010
  3. David D. KilzerAug 14, 2010
  4. Ævar Arnfjörð BjarmasonAug 14, 2010
  5. Eric WongAug 15, 2010

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.