diff --git a/nimp/base_commands/p4.py b/nimp/base_commands/p4.py index 93242963..73380f18 100644 --- a/nimp/base_commands/p4.py +++ b/nimp/base_commands/p4.py @@ -178,4 +178,4 @@ def run(self, env): description = env.format(env.changelist_description) changelist = p4.get_or_create_changelist(description) - return p4.submit(changelist) + return p4.submit(changelist, verbose=env.verbose) diff --git a/nimp/utils/p4.py b/nimp/utils/p4.py index 51cd9298..6229b11b 100644 --- a/nimp/utils/p4.py +++ b/nimp/utils/p4.py @@ -328,10 +328,13 @@ def revert_unchanged(self, cl_number): output = self._run('revert', '-a', '-c', cl_number, '//...') return output is not None - def submit(self, cl_number): + def submit(self, cl_number, verbose=False): '''Submits given changelist''' logging.info("Submiting changelist %s...", cl_number) - command = self._get_p4_command('submit', '-f', 'revertunchanged', '-c', cl_number) + args = ['submit', '-f', 'revertunchanged', '-c', cl_number] + if verbose: + args.insert(0, '-I') + command = self._get_p4_command(*args) _, _, error = nimp.sys.process.call(command, capture_output=True) if error is not None and error != "":