diff -r 6e4f7170734c -r a60b711c7ac4 mercurial/commands.py --- a/mercurial/commands.py Sun Mar 30 23:58:02 2008 +0200 +++ b/mercurial/commands.py Tue Apr 01 08:33:17 2008 +0200 @@ -227,7 +227,10 @@ raise util.Abort(_('cannot use --parent on non-merge changeset')) parent = p1 + # the backout should appear on the same branch + branch = repo.dirstate.branch() hg.clean(repo, node, show_stats=False) + repo.dirstate.setbranch(branch) revert_opts = opts.copy() revert_opts['date'] = None revert_opts['all'] = True