Automatically create `@' bookmark on hg init
Kevin Bullock
kbullock+mercurial at ringworld.org
Mon Apr 22 18:19:19 UTC 2013
On Apr 22, 2013, at 1:01 PM, Yawar Amin wrote:
> Hi Kevin,
>
> On 2013-04-22, at 12:47, Kevin Bullock <kbullock+mercurial at ringworld.org> wrote:
>
>> [...]
>>
>> It would introduce bookmarks into the formerly simple cases, so I think it's a non-starter.
>
> I don't follow. What are the simple cases?
Cloning and contributing to a Mercurial repo without bookmarks. Right now you don't have to worry about bookmarks _at all_ if you're not using them. Setting the '@' bookmark by default would change that. At the very least, you'd have to make sure it remained your active bookmark thru switching to other branches and back, or new clones would end up on old revisions.
>> But I have some thoughts on a similar approach (independent of the '@' bookmark) that you might be interested in: <http://mercurial.selenic.com/wiki/BookmarksPlan#Introducing_Bookmarks_Into_Your_Workflow>
>
> That's clever, but on 2.5.4 you get 'abort: a bookmark cannot have the name of an existing branch'.
It would require some changes to the code, yes.
pacem in terris / мир / शान्ति / سَلاَم / 平和
Kevin R. Bullock
More information about the Mercurial
mailing list