Skip to content

Commit 1855fcd

Browse files
DamianLokicDamian Lokic
andauthored
T289718: Improve output descriptiveness (#153)
Co-authored-by: Damian Lokic <damian.lokic@inspeerity.com>
1 parent 4740be0 commit 1855fcd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

perfact/zodbsync/subcommand.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,14 @@ def wrapper(self, *args, **kwargs):
353353
head_commit = self.gitcmd_output(
354354
"rev-parse", "HEAD"
355355
).strip()
356-
self.logger.info(f"{self.orig_commit}..{head_commit}")
356+
cmd = (
357+
f'zodbsync exec "git revert '
358+
f'{self.orig_commit}..{head_commit}"'
359+
)
360+
self.logger.info(
361+
"Prepared Command for Rollback:\n%s",
362+
cmd,
363+
)
357364

358365
return wrapper
359366

0 commit comments

Comments
 (0)