Re: [PATCH 1/3] Fix multi-glob assertion in git-svn

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 1/3] Fix multi-glob assertion in git-svn

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:07

Eric Wong [off-list ref] writes:
From: Marcus Griep <redacted>

Fixes bad regex match check for multiple globs (would always return
one glob regardless of actual number).

[ew: fixed a bashism in the test and some minor line-wrapping]
Thanks both.
+test_expect_success 'test disallow multi-globs' '
...
+	cd tmp &&
+		echo "try try" >> tags/end/src/b/readme &&
+		poke tags/end/src/b/readme &&
+		svn commit -m "try to try"
+		cd .. &&
Do you want to ignore exit code from 'svn commit -m' here?

In any case, I'd want to see "temporarily work in subdirectory" done in a
subshell when applicable, so that we won't have to worry about where we
are when we later add more tests, like this:

	(
        	cd tmp &&
                echo "try try" >>tags/end/src/b/readme &&
                poke tags/end/src/b/readme &&
                svn commit -m "try to try" &&
	) &&
+	test_must_fail git-svn fetch three 2> stderr.three &&
+	cmp expect.three stderr.three
s/cmp/test_cmp/;

Re: [PATCH 1/3] Fix multi-glob assertion in git-svn

From: Eric Wong <hidden>
Date: 2016-06-15 22:45:07

Junio C Hamano [off-list ref] wrote:
Eric Wong [off-list ref] writes:
quoted
From: Marcus Griep <redacted>

Fixes bad regex match check for multiple globs (would always return
one glob regardless of actual number).

[ew: fixed a bashism in the test and some minor line-wrapping]
Thanks both.
quoted
+test_expect_success 'test disallow multi-globs' '
...
+	cd tmp &&
+		echo "try try" >> tags/end/src/b/readme &&
+		poke tags/end/src/b/readme &&
+		svn commit -m "try to try"
+		cd .. &&
Do you want to ignore exit code from 'svn commit -m' here?
Oops, no missed that.
In any case, I'd want to see "temporarily work in subdirectory" done in a
subshell when applicable, so that we won't have to worry about where we
are when we later add more tests, like this:

	(
        	cd tmp &&
                echo "try try" >>tags/end/src/b/readme &&
                poke tags/end/src/b/readme &&
                svn commit -m "try to try" &&
	) &&
Yes, that's a good idea
quoted
+	test_must_fail git-svn fetch three 2> stderr.three &&
+	cmp expect.three stderr.three
s/cmp/test_cmp/;
Noted.

Shall I make those changes and resubmit or are they simple enough
for you to do?

-- 
Eric Wong
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help