[PATCH 3 of 6 V2-Series-A] hidden: use both parents of working directory

Kevin Bullock kbullock+mercurial at ringworld.org
Tue Jan 8 10:11:30 CST 2013


On Jan 8, 2013, at 7:28 AM, pierre-yves.david at logilab.fr wrote:

> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
> # Date 1357266976 -3600
> # Node ID 3fdab0013c838a19ef6c9891fc3f989e1ea37712
> # Parent  585d2fbfbc2c5eb39b1c31193763fd581c41fef0
> hidden: use both parents of working directory
> 
> If we are merging with and extinct revision, this extinct revision should not be
> hidden.
> 
> diff --git a/mercurial/repoview.py b/mercurial/repoview.py
> --- a/mercurial/repoview.py
> +++ b/mercurial/repoview.py
> @@ -16,11 +16,11 @@ def computehidden(repo):
> 
>     During most operation hidden should be filtered."""
>     assert not repo.changelog.filteredrevs
>     if repo.obsstore:
>         ### hide extinct changeset that are not accessible by any mean
> -        hiddenquery = 'extinct() - ::(. + bookmark())'
> +        hiddenquery = 'extinct() - ::(p1() + p2() + bookmark())'

Could've used 'parents()' here.

Also, is there any way to easily add test coverage for this?

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock



More information about the Mercurial-devel mailing list