diff --git a/git_upstream/commands/import.py b/git_upstream/commands/import.py index f223e71..42045f5 100644 --- a/git_upstream/commands/import.py +++ b/git_upstream/commands/import.py @@ -177,7 +177,8 @@ class ImportCommand(LogDedentMixin, GitUpstreamCommand): # otherwise perform fresh import self.log.notice("Starting import of upstream") import_upstream.create_import(force=self.args.force) - self.log.notice("Successfully created import branch") + self.log.notice("Created import branch '%s'" % + import_upstream.import_branch) # build suitable command line for interactive mode if self.args.merge: diff --git a/git_upstream/tests/commands/import/test_import.py b/git_upstream/tests/commands/import/test_import.py index 226a913..50a9dea 100644 --- a/git_upstream/tests/commands/import/test_import.py +++ b/git_upstream/tests/commands/import/test_import.py @@ -159,6 +159,10 @@ class TestImportCommand(TestWithScenarios, BaseTestCase): def _verify_basic(self): self.assertThat(self.git.log(n=1), Contains("Merge branch 'import/")) + # check we report to the user about the import branch created + self.assertThat( + self.logger.output, + Contains("Created import branch 'import/")) def _verify_basic_additional_missed(self): """Additional verification that test produces a warning"""