Mercurial > hg
comparison tests/test-extension @ 8189:d2899a856f9f
ui: replace parentui mechanism with repo.baseui
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Apr 2009 16:50:43 -0500 |
parents | dbc40381620e |
children | 98d90ad54749 |
comparison
equal
deleted
inserted
replaced
8188:f3abe032fc89 | 8189:d2899a856f9f |
---|---|
7 import os | 7 import os |
8 from mercurial import commands | 8 from mercurial import commands |
9 | 9 |
10 def uisetup(ui): | 10 def uisetup(ui): |
11 ui.write("uisetup called\\n") | 11 ui.write("uisetup called\\n") |
12 ui.write("ui.parentui is%s None\\n" % (ui.parentui is not None | |
13 and "not" or "")) | |
14 | 12 |
15 def reposetup(ui, repo): | 13 def reposetup(ui, repo): |
16 ui.write("reposetup called for %s\\n" % os.path.basename(repo.root)) | 14 ui.write("reposetup called for %s\\n" % os.path.basename(repo.root)) |
17 ui.write("ui %s= repo.ui\\n" % (ui == repo.ui and "=" or "!")) | 15 ui.write("ui %s= repo.ui\\n" % (ui == repo.ui and "=" or "!")) |
18 | 16 |