[PATCH] rebase: replace stray call of 'os.path.exists' with repo.vfs.exists at 'hg summary' hook
Valters Vingolds
valters at vingolds.ch
Fri Jan 6 09:18:28 UTC 2017
# HG changeset patch
# User Valters Vingolds <valters at vingolds.ch>
# Date 1483693121 -3600
# Fri Jan 06 09:58:41 2017 +0100
# Node ID 80ce9f02d8481f8d22d057753088283522cc2539
# Parent 62a41fd87dabf0e6fb631a9e9ba1aabfe7e0f801
rebase: replace stray call of 'os.path.exists' with repo.vfs.exists at 'hg summary' hook
diff --git a/hgext/rebase.py b/hgext/rebase.py
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -1428,7 +1428,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, {})
More information about the Mercurial-devel
mailing list