Commits

Anonymous committed 2727596

option --clean is necessary to abort branch creation

  • Participants
  • Parent commits d85e807

Comments (0)

Files changed (1)

File hg-ibranch.py

     [
         ('m', 'rename', None, _('rename a given branch name')),
         ('d', 'delete', None, _('delete a given branch name')),
-        ('w', 'wake', None _('revive a dead branch with a new name')),
+        ('w', 'wake', None, _('revive a dead branch with a new name')),
+        ('C', 'clean', None, _('reset branch name to parent branch name')),
     ],
     _('[-m [OLD_NAME] | -d | -w BRANCH_ID] NAME]')
 )
 
     Use -w/--wake to revive a dead branch. A new tip marker is created with a new name.
 
+    Use -C/--clean to reset the working directory branch to that of the parent
+    of the working directory, negating a previous branch change.
+
+
     options:
 
+    -m, --rename NAME   rename a given branch name
     -d, --delete        delete a given branch name
-    -m, --rename NAME   rename a given branch name
-    -w, --wake BRANCH_ID NAME  wake a dead branch with a new name
+    -w, --wake BRANCH_ID NAME
+                        wake a dead branch with a new name
+    -C, --clean         reset branch name to parent branch name
 
     Returns 0 on success.
     """