[PATCH 1 of 2] bookmarks: don't use bookmarks.listbookmarks in local computations
Kevin Bullock
kbullock+mercurial at ringworld.org
Mon Jan 28 21:24:41 CST 2013
On 27 Jan 2013, at 5:59 PM, Pierre-Yves David wrote:
> On 27 janv. 2013, at 22:15, Kevin Bullock wrote:
>
>> # HG changeset patch
>> # User Kevin Bullock <kbullock at ringworld.org>
>> # Date 1359318277 21600
>> # Branch stable
>> # Node ID 14fe65a26547fe63963f4e6062b26f07a9443860
>> # Parent b404fa103253960824500066dffa2b7d6cff33ee
>> bookmarks: don't use bookmarks.listbookmarks in local computations
>>
>> bookmarks.listbookmarks is for wire-protocol use. The normal way to get
>> all the bookmarks on a local repository is repo._bookmarks.
>
> repo._bookmarks.values() and bookmarks.listbookmarks(repo) have different returns.
> (divergent bookmark are excluded from listbookmarks)
>
> I would make sense to test that neither filtering nor revset ignore them.
>
> Patches (1 and 2) looks good to me otherwise.
Crewed the series, along with a test that bookmarks prevent changesets from being hidden (didn't appear to already be one). Thanks for the review.
pacem in terris / мир / शान्ति / سَلاَم / 平和
Kevin R. Bullock
More information about the Mercurial-devel
mailing list