hgweb: Last change not as old as tip

Matt Mackall mpm at selenic.com
Sun Sep 25 23:23:48 CDT 2005

On Sun, Sep 25, 2005 at 08:15:31PM -0700, TK Soh wrote:
> I noticed 'Last change' time on hgwebdir index page doesn't match the age of
> repo's tip. Is this an intended behavior?

The commit time is when a commit was first committed to a Mercurial
repo. Last change is when the repo in question last changed. If it's
freshly cloned or pushed to from a repo with an old tip, those times
will be different.

Then the question becomes: don't we want to show the commit time
instead? The answer is no: the repo has new content in it. If I have a
commit that I forget to push all weekend and you've been waiting for
it, you want to see "last change" say "now" rather than "2 days ago"
when I actually push it.

Mathematics is the supreme nostalgia of our time.

More information about the Mercurial mailing list