rebase: use repo.vfs.exists in 'hg summary' hook
authorValters Vingolds <valters@vingolds.ch>
Fri, 06 Jan 2017 09:58:41 +0100
changeset 30709 a932297febb7
parent 30708 011122b3b1c4
child 30710 7e95e70bad57
rebase: use repo.vfs.exists in 'hg summary' hook
hgext/rebase.py
--- a/hgext/rebase.py	Wed Dec 28 15:48:17 2016 -0700
+++ b/hgext/rebase.py	Fri Jan 06 09:58:41 2017 +0100
@@ -1424,7 +1424,7 @@
     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, {})