# HG changeset patch # User John Mulligan # Date 2009-01-25 18:20:43 # Node ID b7ac53f7b061d31658e0632caab94e2d199e9074 # Parent 25fc4c620e542f5dd9887c47c08b16bbe2215d61 branch closing: permit closing the default branch There was no good reason to special case the 'default' branch. Allow the 'default' branch to be closed if the user wants it. If you're uncomfortable about mistakenly closing the default branch, you can always reopen the branch by commiting a "normal" changeset onto the closed branch. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -852,8 +852,6 @@ class localrepository(repo.repository): user = wctx.user() text = wctx.description() - if branchname == 'default' and extra.get('close'): - raise util.Abort(_('closing the default branch is invalid')) p1, p2 = [p.node() for p in wctx.parents()] c1 = self.changelog.read(p1) c2 = self.changelog.read(p2)