1from hglib.util import b 2 3class handlers(object): 4 """ 5 These can be used as the cb argument to hgclient.merge() to control the 6 behaviour when Mercurial prompts what to do with regard to a specific file, 7 e.g. when one parent modified a file and the other removed it. 8 """ 9 10 @staticmethod 11 def abort(size, output): 12 """ 13 Abort the merge if a prompt appears. 14 """ 15 return b('') 16 17 """ 18 This corresponds to Mercurial's -y/--noninteractive global option, which 19 picks the first choice on all prompts. 20 """ 21 noninteractive = 'yes' 22