On 6/5/2014 1:20 AM, Richard Hipp <d...@sqlite.org> wrote:
On Wed, Jun 4, 2014 at 12:53 PM, B Harder<brad.har...@gmail.com>  wrote:

>Indeed, non-propagating tags are also "checkout-able" items.
>
>What am I missing about bookmarks that we can't already enjoy w/ tags,
>outside of new syntax ?
>
Here's something that you get for free with Fossil's model that you can't
get with Hg or Git (as far as I know):  the ability to look at historic
versions on particular branches as of some point in time using the
"<branchname>:<datetime>" construct.  So, for example, the current Fossil
homepage can be seen at:

      http://www.fossil-scm.org/fossil/doc/tip/www/index.wiki

The "tip" in that URL is a magic tag that means the most recent check-in.
What did the homepage look like on the head of the "trunk" branch at the
beginning of 2012?

      http://www.fossil-scm.org/fossil/doc/trunk:2012-01-01/www/index.wiki

Similarly, if you wanted to checkout the branch "experimental" as it
existed on some historical date, you could type:

      fossil co experimental:2011-06-04

I personally use that capability all the time when trying to find the
initial bounds on a bug in order to begin a bisect, or when doing things
like comparing performance of SQLite to one or five years ago.  Question:
Is anything like this even possible in Git and/or Hg?

Mercurial supports a history querying feature they call "revsets," or revision sets. I don't often use it, but people on the Hg mailing list have provided useful suggestions when users ask how to get some specific changeset(s) data for reports.

From what I've seen, it's usable even on the search box available in Mercurial's web interface ("hg serve").

http://www.selenic.com/hg/help/revsets

Here's an admittedly simple example:

$ hg log -r "branch(default) and date('2014-04-07') and file('mercurial/merge.py')"
changeset:   21082:0d67fccc0d43
user:        Mads Kiilerich <mad...@unity3d.com>
date:        Mon Apr 07 02:12:28 2014 +0200
summary: merge: let manifestmerge emit 'keep' actions when keeping wd version

IIRC, there are options available in Git's "git log" command that will allow querying like this as well (at least from what I've read briefly in Git's HTML docs), but I'm no Git power user, either.

--Arnel
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to