chiark / gitweb /
Remove "stg" from start of log messages
authorKarl Hasselström <kha@treskal.com>
Thu, 8 May 2008 22:24:11 +0000 (00:24 +0200)
committerKarl Hasselström <kha@treskal.com>
Thu, 8 May 2008 22:24:11 +0000 (00:24 +0200)
It's entirely redundant.

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/clean.py
stgit/commands/coalesce.py
stgit/commands/commit.py
stgit/commands/edit.py
stgit/commands/goto.py
stgit/commands/uncommit.py

index 889c1dc356b480b081c0533052e0fedf4970aa82..dbbc961127f8cac57db6a8c613b44efbcdf4b534 100644 (file)
@@ -37,7 +37,7 @@ options = [make_option('-a', '--applied',
 
 
 def _clean(stack, clean_applied, clean_unapplied):
 
 
 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]:
     def del_patch(pn):
         if pn in stack.patchorder.applied:
             if pn == stack.patchorder.applied[-1]:
index 291a537486428b5f2dbfb52bc546f09d9b13e8b4..7eb89db647edc0ee1f5de0deec6d62826dce302b 100644 (file)
@@ -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.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)
     push_new_patch = bool(set(patches) & set(trans.applied))
     try:
         new_commit_data = _coalesce_patches(trans, patches, msg, save_template)
index bff94ceff9a01b5858f4c48923ec0f6f4f7fe15b..f8927b5c4b722c2da8768c123a0e180f03844fa6 100644 (file)
@@ -69,7 +69,7 @@ def func(parser, options, args):
         raise common.CmdException('No patches to commit')
 
     iw = stack.repository.default_iw
         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))):
     try:
         common_prefix = 0
         for i in xrange(min(len(stack.patchorder.applied), len(patches))):
index 7daf156ffe402442485048329cca627d72ddb283..7c45b0feca1fe29496ef4fc0f2c6c317b58408f5 100644 (file)
@@ -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
     # 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)
     if patchname in trans.applied:
         popped = trans.applied[trans.applied.index(patchname)+1:]
         assert not trans.pop_patches(lambda pn: pn in popped)
index fe13e497c50f006c453c81887b3c8c2716a101dd..b34792049ec5ed390bc2fd8dd20d17d645872c71 100644 (file)
@@ -36,7 +36,7 @@ def func(parser, options, args):
 
     stack = directory.repository.current_stack
     iw = stack.repository.default_iw
 
     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)
     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)
index 272c5dbc9f4189020b23bb6cd2666e8fd98e15ee..415267ecf34a15f3ca0369d9addf42cf8fa0cd6d 100644 (file)
@@ -131,7 +131,7 @@ def func(parser, options, args):
             taken_names.add(pn)
         patchnames.reverse()
 
             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
     for commit, pn in zip(commits, patchnames):
         trans.patches[pn] = commit
     trans.applied = list(reversed(patchnames)) + trans.applied