diff mercurial/commands.py @ 15615:41885892796e stable

branch: warn on branching
author Matt Mackall <mpm@selenic.com>
date Thu, 08 Dec 2011 14:32:44 -0600
parents 09b200396384
children fc8c7a5ccc4a dc5d1394ecd1
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Dec 05 17:09:11 2011 -0600
+++ b/mercurial/commands.py	Thu Dec 08 14:32:44 2011 -0600
@@ -855,6 +855,8 @@
                                  hint=_("use 'hg update' to switch to it"))
         repo.dirstate.setbranch(label)
         ui.status(_('marked working directory as branch %s\n') % label)
+        ui.status(_('(branches are permanent and global, '
+                    'did you want a bookmark?)\n'))
     else:
         ui.write("%s\n" % repo.dirstate.branch())