{"thread":{"id":"22011","subject":"[PATCH] git svn: add (failing) test for a git svn gc followed by a git svn mkdirs","startedAt":"2009-12-23T04:08:15Z","lastAt":"2009-12-23T06:18:42Z","messageCount":2,"participants":["Robert Zeh","Eric Wong"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"130269","messageId":"57d579150912222008j19b16b1aq88ebd0938c2553e9@mail.gmail.com","threadId":"22011","inReplyTo":null,"subject":"[PATCH] git svn: add (failing) test for a git svn gc followed by a git svn mkdirs","fromName":"Robert Zeh","fromEmail":"robert.a.zeh@gmail.com","sentAt":"2009-12-23T04:08:15Z","receivedAt":"2009-12-23T04:08:15Z","isPatch":true,"sender":{"key":"robert.a.zeh@gmail.com","avatar":"https://avatars.githubusercontent.com/u/174737?v=4"},"body":"git svn gc will compress the unhandled.log files that git svn mkdirs reads,\ncausing git svn mkdirs to skip directory creation.\n---\n t/t9152-svn-empty-dirs-after-gc.sh |   41 ++++++++++++++++++++++++++++++++++++\n 1 files changed, 41 insertions(+), 0 deletions(-)\n create mode 100755 t/t9152-svn-empty-dirs-after-gc.sh\n\ndiff --git a/t/t9152-svn-empty-dirs-after-gc.sh\nb/t/t9152-svn-empty-dirs-after-gc.sh\nnew file mode 100755\nindex 0000000..9ac6ea9\n--- /dev/null\n+++ b/t/t9152-svn-empty-dirs-after-gc.sh\n@@ -0,0 +1,41 @@\n+#!/bin/sh\n+#\n+# Copyright (c) 2009 Robert Zeh\n+\n+test_description='git svn creates empty directories, calls git gc,\nmakes sure they are still empty'\n+. ./lib-git-svn.sh\n+\n+test_expect_success 'initialize repo' '\n+\tfor i in a b c d d/e d/e/f \"weird file name\"\n+\tdo\n+\t\tsvn_cmd mkdir -m \"mkdir $i\" \"$svnrepo\"/\"$i\"\n+\tdone\n+'\n+\n+test_expect_success 'clone' 'git svn clone \"$svnrepo\" cloned'\n+\n+test_expect_success 'git svn gc runs' '\n+\t(\n+\t\tcd cloned &&\n+\t\tgit svn gc\n+\t)\n+'\n+\n+test_expect_success 'git svn mkdirs recreates empty directories after\ngit svn gc' '\n+\t(\n+\t\tcd cloned &&\n+\t\trm -r * &&\n+\t\tgit svn mkdirs &&\n+\t\tfor i in a b c d d/e d/e/f \"weird file name\"\n+\t\tdo\n+\t\t\tif ! test -d \"$i\"\n+\t\t\tthen\n+\t\t\t\techo >&2 \"$i does not exist\"\n+\t\t\t\texit 1\n+\t\t\tfi\n+\t\tdone\n+\t)\n+'\n+\n+\n+test_done\n-- \n1.6.6.rc3.dirty\n"},{"id":"130273","messageId":"20091223061842.GA4323@dcvr.yhbt.net","threadId":"22011","inReplyTo":"57d579150912222008j19b16b1aq88ebd0938c2553e9@mail.gmail.com","subject":"Re: [PATCH] git svn: add (failing) test for a git svn gc followed by a git svn mkdirs","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2009-12-23T06:18:42Z","receivedAt":"2009-12-23T06:18:42Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Robert Zeh <robert.a.zeh@gmail.com> wrote:\n> git svn gc will compress the unhandled.log files that git svn mkdirs reads,\n> causing git svn mkdirs to skip directory creation.\n> ---\n>  t/t9152-svn-empty-dirs-after-gc.sh |   41 ++++++++++++++++++++++++++++++++++++\n>  1 files changed, 41 insertions(+), 0 deletions(-)\n>  create mode 100755 t/t9152-svn-empty-dirs-after-gc.sh\n\nHi Robert,\n\nI actually got impatient over the weekend and committed a test case and\nfix.  I believe I Cc-ed you on it...  But your test case might be\ncleaner, but yes, same things Junio said.\n\n-- \nEric Wong\n"}]}