[PATCH 2 of 5] histedit: remove useless 'else' clause
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Mon Aug 3 16:25:24 CDT 2015
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1438606665 25200
# Mon Aug 03 05:57:45 2015 -0700
# Node ID 4e57b7b30543c50f009e65c8cf0bf05589bc510b
# Parent 7eb4f2a653e9412c51c4163ad0b5a6e0bea6e43a
histedit: remove useless 'else' clause
This 'else: pass' clause have no effect. We drop it for clarity.
diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -794,12 +794,10 @@ def _histedit(ui, repo, state, *freeargs
parentnodes = [c.node() for c in repo[None].parents()]
for n in leafs | set([state.parentctxnode]):
if n in parentnodes:
hg.clean(repo, state.topmost)
break
- else:
- pass
cleanupnode(ui, repo, 'created', tmpnodes)
cleanupnode(ui, repo, 'temp', leafs)
state.clear()
return
else:
More information about the Mercurial-devel
mailing list