Commits

Takafumi Arakaki  committed edd4400

No need to check len(heads) > 1

  • Participants
  • Parent commits 2601834

Comments (0)

Files changed (1)

     i = 0
     for br in sort_branches(heads_branch):
         heads = heads_branch[br]
-        if len(heads) > 1:
-            for node in heads[1:]:
-                newbranch = branch_temp.format(i=i)
-                print 'node:{node} | branch: {branch} -> {newbranch}'.format(
-                    node=node, branch=br, newbranch=newbranch)
-                if not dry_run:
-                    hg_branch(node, newbranch)
-                i += 1
+        for node in heads[1:]:
+            newbranch = branch_temp.format(i=i)
+            print 'node:{node} | branch: {branch} -> {newbranch}'.format(
+                node=node, branch=br, newbranch=newbranch)
+            if not dry_run:
+                hg_branch(node, newbranch)
+            i += 1
 
 
 def main():