# HG changeset patch # User Valters Vingolds # Date 2017-01-06 08:58:41 # Node ID a932297febb754862715a3d00d74c58ead353792 # Parent 011122b3b1c42374fb0489d107418e1be3665ca6 rebase: use repo.vfs.exists in 'hg summary' hook diff --git a/hgext/rebase.py b/hgext/rebase.py --- a/hgext/rebase.py +++ b/hgext/rebase.py @@ -1424,7 +1424,7 @@ def _computeobsoletenotrebased(repo, reb return obsoletenotrebased def summaryhook(ui, repo): - if not os.path.exists(repo.join('rebasestate')): + if not repo.vfs.exists('rebasestate'): return try: rbsrt = rebaseruntime(repo, ui, {})