Beiträge getagged ‘bookmarks’

Upcoming improvements of the Mercurial Bookmarks extension

7 Dezember 2008

Harmony

Creative Commons Licensephoto credit: ~K~

As I’ve just spotted, some important additions have been committed to the repository
of the bookmarks extension: Push now supports only pushing non-bookmarked changesets, which means that your local bookmark branches are really only local and won’t be available in the target repository. And we have a corresponding feature in log to only show bookmarked changesets. Moreover, the bookmark you’re on is now tracked, so now the behaviour is more like the git local branches one.

Especially the push enhancement is important as you now don’t have to strip all bookmark-branches before pushing. So now we only need a means, to propagate bookmarks between repositories :-).

Update: Was backed out again :(.

VN:F [1.9.2_1090]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.2_1090]
Rating: 0 (from 0 votes)

Bookmarks, a.k.a. local branches in MercurialEclipse

15 November 2008

Had I known yesterday that I would have another feature to blog about, I’d have skipped the previous post and put it all together in this…

Screenshot of Bookmark dialog, create tab

Anyway, a new feature is now available in the current development version of MercurialEclipse, the Mercurial team plug-in for Eclipse: So called bookmarks.

The functionality is provided by the bookmarks extension, distributed together with Mercurial versions that are newer than 24.10.2008. So what are bookmarks? Have you heard of the complaint that Mercurial can’t do deleteable named branches within one clone? Don’t you want to clone to create a branch? Then the bookmark extension could be the solution for you. But keep in mind that bookmarks do not propagate to remote repositories. They are only available on your machine.

Bookmarks are pointers to specific heads. As with git local branches, they move with each commit and always point at the head. Update: There’s a nice introduction available at the blog of the extension’s author if you want to read more about the extension.

The dialog tab in the screenshot above allows you to create such bookmarks. If nothing is selected, it just sets the new bookmark to the tip revision. If you select a revision – I trust, you get it…

Contrary to named branches, bookmarks are local only and therefore aren’t under source control. This means, you can modify them as much as you like. Below you see our interface for renaming or deleting bookmarks.

Screenshot of Bookmark dialog, modify tab

Working with bookmarks is like using branches. On the command line you can use it wherever a revision needs to be specified. So we’ve extended our “Update to different changeset dialog…” to include bookmarks. The new tab looks like this:

Screenshot of UpdateToChangeset dialog, bookmark tab

Okay, that’s it for now. The next post about this follows when new features are available.

VN:F [1.9.2_1090]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.2_1090]
Rating: 0 (from 0 votes)