hg switch

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Oct 20 12:02:38 CDT 2014



On 10/20/2014 07:14 AM, Augie Fackler wrote:
> 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/?

+1

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list