[RFC] warn people about the permanence of branches
Matt Mackall
mpm at selenic.com
Mon Dec 5 23:22:37 UTC 2011
Looks like our efforts to alert people exposed to Git to the permanence
of branches in non-Git systems need help. I propose:
diff -r 09b200396384 mercurial/commands.py
--- a/mercurial/commands.py Mon Dec 05 17:09:11 2011 -0600
+++ b/mercurial/commands.py Mon Dec 05 17:12:10 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.warn(_('warning: branches are permanent and global,'
+ ' did you want a bookmark?\n'))
else:
ui.write("%s\n" % repo.dirstate.branch())
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list