diff -r 537a8aeb9977 -r 232a33a11ce0 mercurial/commands.py --- a/mercurial/commands.py Mon Apr 15 22:13:11 2019 -0700 +++ b/mercurial/commands.py Fri Apr 05 15:56:05 2019 +0200 @@ -4488,7 +4488,7 @@ brev = None if checkout: - checkout = repo.changelog.rev(checkout) + checkout = repo.unfiltered().changelog.rev(checkout) # order below depends on implementation of # hg.addbranchrevs(). opts['bookmark'] is ignored,