hg switch

Augie Fackler raf at durin42.com
Mon Oct 20 09:14:53 CDT 2014


On Sat, Oct 18, 2014 at 09:17:04PM +0300, anatoly techtonik wrote:
> http://git-legit.org/
>
> $ git switch <branch>
> # Switches to branch. Stashes and restores unstaged changes.
>
> https://stackoverflow.com/questions/1156152/how-do-i-switch-with-mercurial
> https://stackoverflow.com/questions/2159623/how-can-i-switch-to-a-tag-branch-in-hg
> https://stackoverflow.com/questions/4061666/switching-between-mercurial-branches
>
> ?
>
> The reasons I came back to this is:
>  - intuitive interface is intuitive
>  - IIRC, 'hg up' refuses to jump across branches
>    if there are uncommitted (unstaged) changes

Some sort of auto-stash-unstash behavior/command doesn't seem wholly
unreasonable. Consider filing a feature request at
http://bz.selenic.com/?

>
> Straightforward reflection of intentions in command
> interface is a corner stone of good user experience.
>
> CC, please.
> --
> anatoly t.
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list