It's entirely redundant.
Signed-off-by: Karl Hasselström <kha@treskal.com>
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]:
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)
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))):
# 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)
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)
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