From: Catalin Marinas Date: Sat, 22 Sep 2007 22:38:30 +0000 (+0100) Subject: Print 'updating patch' earlier in 'edit' X-Git-Tag: v0.14.3~114 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/ead8e89297dfabf7c290338a86c89f19c5ba7401 Print 'updating patch' earlier in 'edit' Otherwise, the user waits without knowing what's going on. Signed-off-by: Catalin Marinas --- diff --git a/stgit/commands/edit.py b/stgit/commands/edit.py index 1a7b1b3..63c710b 100644 --- a/stgit/commands/edit.py +++ b/stgit/commands/edit.py @@ -93,6 +93,8 @@ def __update_patch(pname, fname, options): message, author_name, author_email, author_date, diff = parse_patch(f) f.close() + out.start('Updating patch "%s"' % pname) + if options.diff: git.switch(bottom) try: @@ -102,12 +104,12 @@ def __update_patch(pname, fname, options): git.switch(top) raise - out.start('Updating patch "%s"' % pname) crt_series.refresh_patch(message = message, author_name = author_name, author_email = author_email, author_date = author_date, backup = True, log = 'edit') + if crt_series.empty_patch(pname): out.done('empty patch') else: