comparison hg_delta_editor.py @ 214:1416429584b2

Reuse ui from the repo if available.
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 20 Mar 2009 16:40:51 +0100
parents 05243ec295e1
children 6eb691a163cd
comparison
equal deleted inserted replaced
213:b1d2ea765516 214:1416429584b2
67 """path is the path to the target hg repo. 67 """path is the path to the target hg repo.
68 68
69 subdir is the subdirectory of the edits *on the svn server*. 69 subdir is the subdirectory of the edits *on the svn server*.
70 It is needed for stripping paths off in certain cases. 70 It is needed for stripping paths off in certain cases.
71 """ 71 """
72 if repo and repo.ui and not ui_:
73 ui_ = repo.ui
72 if not ui_: 74 if not ui_:
73 ui_ = ui.ui() 75 ui_ = ui.ui()
74 self.ui = ui_ 76 self.ui = ui_
75 if repo: 77 if repo:
76 self.repo = repo 78 self.repo = repo