-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11051 from devsagul/fix/svn-fails-with-verbose
fix svn and bazaar failing to checkout in verbose mode
- Loading branch information
Showing
4 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix error on checkout for subversion and bazaar with verbose mode on. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -777,6 +777,22 @@ def assert_call_args(self, args: CommandArgs) -> None: | |
assert self.call_subprocess_mock.call_args[0][0] == args | ||
|
||
def test_obtain(self) -> None: | ||
self.svn.obtain(self.dest, hide_url(self.url), verbosity=1) | ||
self.assert_call_args( | ||
[ | ||
"svn", | ||
"checkout", | ||
"--non-interactive", | ||
"--username", | ||
"username", | ||
"--password", | ||
hide_value("password"), | ||
hide_url("http://svn.example.com/"), | ||
"/tmp/test", | ||
] | ||
) | ||
|
||
def test_obtain_quiet(self) -> None: | ||
self.svn.obtain(self.dest, hide_url(self.url), verbosity=0) | ||
self.assert_call_args( | ||
[ | ||
|
@@ -794,6 +810,18 @@ def test_obtain(self) -> None: | |
) | ||
|
||
def test_fetch_new(self) -> None: | ||
self.svn.fetch_new(self.dest, hide_url(self.url), self.rev_options, verbosity=1) | ||
self.assert_call_args( | ||
[ | ||
"svn", | ||
"checkout", | ||
"--non-interactive", | ||
hide_url("svn+http://username:[email protected]/"), | ||
"/tmp/test", | ||
] | ||
) | ||
|
||
def test_fetch_new_quiet(self) -> None: | ||
self.svn.fetch_new(self.dest, hide_url(self.url), self.rev_options, verbosity=0) | ||
self.assert_call_args( | ||
[ | ||
|
@@ -807,6 +835,21 @@ def test_fetch_new(self) -> None: | |
) | ||
|
||
def test_fetch_new_revision(self) -> None: | ||
rev_options = RevOptions(Subversion, "123") | ||
self.svn.fetch_new(self.dest, hide_url(self.url), rev_options, verbosity=1) | ||
self.assert_call_args( | ||
[ | ||
"svn", | ||
"checkout", | ||
"--non-interactive", | ||
"-r", | ||
"123", | ||
hide_url("svn+http://username:[email protected]/"), | ||
"/tmp/test", | ||
] | ||
) | ||
|
||
def test_fetch_new_revision_quiet(self) -> None: | ||
rev_options = RevOptions(Subversion, "123") | ||
self.svn.fetch_new(self.dest, hide_url(self.url), rev_options, verbosity=0) | ||
self.assert_call_args( | ||
|