Skip to contentSkip to conversation

Fix uncommit status message

PATCH New Karl Hasselström 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix uncommit status message

It should say

Uncommitting to 8561b089afbaed2651591e5a4574fdca451d82f2 (exclusive) ...

not

Uncommitting to Commit<sha1: 8561b089afbaed2651591e5a4574fdca451d82f2, data: None> (exclusive) ...

(though arguably, the sha1 should be abbreviated as well).

---

 stgit/commands/uncommit.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
stgit/commands/uncommit.py +2 -2
index eb39fcc..0f43b49 100644
@@ -104,9 +104,9 @@ def func(parser, options, args):
             next_commit = get_parent(next_commit)
     else:
         if options.exclusive:
-            out.start('Uncommitting to %s (exclusive)' % to_commit)
+            out.start('Uncommitting to %s (exclusive)' % to_commit.sha1)
         else:
-            out.start('Uncommitting to %s' % to_commit)
+            out.start('Uncommitting to %s' % to_commit.sha1)
         while True:
             if next_commit == to_commit:
                 if not options.exclusive: