scmutil, smartset, tags, url as urlmod, util, ) from mercurial.utils import ( procutil, stringutil, ) cmdtable = {} command = registrar.command(cmdtable) configtable = {} configitem = registrar.configitem(configtable) # developer config: phabricator.batchsize configitem(b'phabricator', b'batchsize', default=12, ) configitem(b'phabricator', b'callsign', default=None, ) configitem(b'phabricator', b'curlcmd', default=None, ) # developer config: phabricator.repophid configitem(b'phabricator', b'repophid', default=None, )
registrar, scmutil, util, ) from mercurial.utils import ( stringutil, ) # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should # be specifying the version(s) of Mercurial they are tested with, or # leave the attribute unspecified. testedwith = 'ships-with-hg-core' configtable = {} configitem = registrar.configitem(configtable) configitem('eol', 'fix-trailing-newline', default=False, ) configitem('eol', 'native', default=pycompat.oslinesep, ) configitem('eol', 'only-consistent', default=True, ) # Matches a lone LF, i.e., one that is not part of CRLF. singlelf = re.compile('(^|[^\r])\n') def inconsistenteol(data):