Mercurial > hg-stable
changeset 18008:cf91b36f368c
clfilter: `bookmark.validdest` should run on unfiltered repo
The logic recently added to `bookmark.validdest` uses data about obsolete
changesets to see if a bookmark destination is valid. Obsolete changesets
are likely to be filtered, so we need to work on an unfiltered repository.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Mon, 08 Oct 2012 17:26:23 +0200 |
parents | 2e30972d859d |
children | 67c874d14c2c |
files | mercurial/bookmarks.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bookmarks.py Mon Oct 08 17:41:07 2012 +0200 +++ b/mercurial/bookmarks.py Mon Oct 08 17:26:23 2012 +0200 @@ -256,6 +256,7 @@ def validdest(repo, old, new): """Is the new bookmark destination a valid update from the old one""" + repo = repo.unfiltered() if old == new: # Old == new -> nothing to update. return False