From e5075287dec4478862ae435b69a0d3ffddfff0cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karl=20Hasselstr=C3=B6m?= Date: Fri, 9 May 2008 00:24:11 +0200 Subject: [PATCH] Remove "stg" from start of log messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It's entirely redundant. Signed-off-by: Karl Hasselström --- stgit/commands/clean.py | 2 +- stgit/commands/coalesce.py | 2 +- stgit/commands/commit.py | 2 +- stgit/commands/edit.py | 2 +- stgit/commands/goto.py | 2 +- stgit/commands/uncommit.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stgit/commands/clean.py b/stgit/commands/clean.py index 889c1dc..dbbc961 100644 --- a/stgit/commands/clean.py +++ b/stgit/commands/clean.py @@ -37,7 +37,7 @@ options = [make_option('-a', '--applied', def _clean(stack, clean_applied, clean_unapplied): - trans = transaction.StackTransaction(stack, 'stg clean') + trans = transaction.StackTransaction(stack, 'clean') def del_patch(pn): if pn in stack.patchorder.applied: if pn == stack.patchorder.applied[-1]: diff --git a/stgit/commands/coalesce.py b/stgit/commands/coalesce.py index 291a537..7eb89db 100644 --- a/stgit/commands/coalesce.py +++ b/stgit/commands/coalesce.py @@ -79,7 +79,7 @@ def _coalesce(stack, iw, name, msg, save_template, patches): trans.patches[name] = stack.repository.commit(new_commit_data) trans.unapplied.insert(0, name) - trans = transaction.StackTransaction(stack, 'stg coalesce') + trans = transaction.StackTransaction(stack, 'coalesce') push_new_patch = bool(set(patches) & set(trans.applied)) try: new_commit_data = _coalesce_patches(trans, patches, msg, save_template) diff --git a/stgit/commands/commit.py b/stgit/commands/commit.py index bff94ce..f8927b5 100644 --- a/stgit/commands/commit.py +++ b/stgit/commands/commit.py @@ -69,7 +69,7 @@ def func(parser, options, args): raise common.CmdException('No patches to commit') iw = stack.repository.default_iw - trans = transaction.StackTransaction(stack, 'stg commit') + trans = transaction.StackTransaction(stack, 'commit') try: common_prefix = 0 for i in xrange(min(len(stack.patchorder.applied), len(patches))): diff --git a/stgit/commands/edit.py b/stgit/commands/edit.py index 7daf156..7c45b0f 100644 --- a/stgit/commands/edit.py +++ b/stgit/commands/edit.py @@ -191,7 +191,7 @@ def func(parser, options, args): # The patch applied, so now we have to rewrite the StGit patch # (and any patches on top of it). iw = stack.repository.default_iw - trans = transaction.StackTransaction(stack, 'stg edit') + trans = transaction.StackTransaction(stack, 'edit') if patchname in trans.applied: popped = trans.applied[trans.applied.index(patchname)+1:] assert not trans.pop_patches(lambda pn: pn in popped) diff --git a/stgit/commands/goto.py b/stgit/commands/goto.py index fe13e49..b347920 100644 --- a/stgit/commands/goto.py +++ b/stgit/commands/goto.py @@ -36,7 +36,7 @@ def func(parser, options, args): stack = directory.repository.current_stack iw = stack.repository.default_iw - trans = transaction.StackTransaction(stack, 'stg goto') + trans = transaction.StackTransaction(stack, 'goto') if patch in trans.applied: to_pop = set(trans.applied[trans.applied.index(patch)+1:]) assert not trans.pop_patches(lambda pn: pn in to_pop) diff --git a/stgit/commands/uncommit.py b/stgit/commands/uncommit.py index 272c5db..415267e 100644 --- a/stgit/commands/uncommit.py +++ b/stgit/commands/uncommit.py @@ -131,7 +131,7 @@ def func(parser, options, args): taken_names.add(pn) patchnames.reverse() - trans = transaction.StackTransaction(stack, 'stg uncommit') + trans = transaction.StackTransaction(stack, 'uncommit') for commit, pn in zip(commits, patchnames): trans.patches[pn] = commit trans.applied = list(reversed(patchnames)) + trans.applied -- 2.11.0