[PATCH 2 of 3] context: handle fileid or changeid == 0

Matt Mackall mpm at selenic.com
Fri Sep 22 04:29:42 UTC 2006


On Thu, Sep 21, 2006 at 05:28:14PM -0700, Brendan Cully wrote:
> # HG changeset patch
> # User Brendan Cully <brendan at kublai.com>
> # Date 1158884459 25200
> # Node ID c9213ee0d005b9c5e8e554336135014108da5132
> # Parent  925124e5d19ff12ca5f5b46b4167fc9cad206687
> context: handle fileid or changeid == 0
> 
> diff -r 925124e5d19f -r c9213ee0d005 mercurial/context.py
> --- a/mercurial/context.py	Thu Sep 21 17:07:44 2006 -0700
> +++ b/mercurial/context.py	Thu Sep 21 17:20:59 2006 -0700
> @@ -12,7 +12,7 @@ class changectx(object):
>          """changeid is a revision number, node, or tag"""
>          self._repo = repo
>  
> -        if not changeid:
> +        if not changeid and changeid != 0:

Probably if changeid is None. Otherwise good.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list