[PATCH] Issue916: tag ought to work sanely even when there is no checkout

Matt Mackall mpm at selenic.com
Tue Apr 1 19:04:25 CDT 2008


On Tue, 2008-04-01 at 17:53 -0400, Jesse Glick wrote:
> # HG changeset patch
> # User Jesse Glick <jesse.glick at sun.com>
> # Date 1207086619 14400
> # Node ID e3535a8101336b22919011408dc74ac5eddc65b0
> # Parent  ee5313bc3c0c6d4c4963f01aeb1bfc639d91367b 

I'm afraid I don't like this. The current behavior is perfectly
consistent. "No checkout" is identical to having checked out "the empty
version" and it's not like dividing by zero. We don't want to add a
second behavior and have people start expecting tag to -always- tag the
tip. Some people might even -want- to keep all their tags on a separate
branch.

I'd rather have the "creates a new head" sort of warning.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list