[PATCH 4 of 9] test-filecache: alias ui as uimod

Yuya Nishihara yuya at tcha.org
Tue Apr 5 12:05:12 EDT 2016


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1459865776 -32400
#      Tue Apr 05 23:16:16 2016 +0900
# Node ID 5d1939d4c7ddf07c0e21b78217c0745dc4441366
# Parent  8d0917602b144a6426162dd1885a1743428b09d9
test-filecache: alias ui as uimod

diff --git a/tests/test-filecache.py b/tests/test-filecache.py
--- a/tests/test-filecache.py
+++ b/tests/test-filecache.py
@@ -11,7 +11,7 @@ from mercurial import (
     extensions,
     hg,
     scmutil,
-    ui,
+    ui as uimod,
     util,
 )
 
@@ -141,7 +141,7 @@ def fakeuncacheable():
 def test_filecache_synced():
     # test old behavior that caused filecached properties to go out of sync
     os.system('hg init && echo a >> a && hg ci -qAm.')
-    repo = hg.repository(ui.ui())
+    repo = hg.repository(uimod.ui())
     # first rollback clears the filecache, but changelog to stays in __dict__
     repo.rollback()
     repo.commit('.')


More information about the Mercurial-devel mailing list