mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
Reuse ui from the repo if available.
This commit is contained in:
parent
a54db6d5a8
commit
fb3ecc8ed3
@ -69,6 +69,8 @@ class HgChangeReceiver(delta.Editor):
|
||||
subdir is the subdirectory of the edits *on the svn server*.
|
||||
It is needed for stripping paths off in certain cases.
|
||||
"""
|
||||
if repo and repo.ui and not ui_:
|
||||
ui_ = repo.ui
|
||||
if not ui_:
|
||||
ui_ = ui.ui()
|
||||
self.ui = ui_
|
||||
|
Loading…
Reference in New Issue
Block a user