hgext/keyword.py
changeset 39548 7ce9dea3a14a
parent 39432 16c27483f50f
child 40220 c7ffc53fbd19
equal deleted inserted replaced
39546:41aa5dced975 39548:7ce9dea3a14a
   437     ui.note(_('creating temporary repository at %s\n') % tmpdir)
   437     ui.note(_('creating temporary repository at %s\n') % tmpdir)
   438     if repo is None:
   438     if repo is None:
   439         baseui = ui
   439         baseui = ui
   440     else:
   440     else:
   441         baseui = repo.baseui
   441         baseui = repo.baseui
   442     repo = localrepo.localrepository(baseui, tmpdir, True)
   442     repo = localrepo.instance(baseui, tmpdir, create=True)
   443     ui.setconfig('keyword', fn, '', 'keyword')
   443     ui.setconfig('keyword', fn, '', 'keyword')
   444     svn = ui.configbool('keywordset', 'svn')
   444     svn = ui.configbool('keywordset', 'svn')
   445     # explicitly set keywordset for demo output
   445     # explicitly set keywordset for demo output
   446     ui.setconfig('keywordset', 'svn', svn, 'keyword')
   446     ui.setconfig('keywordset', 'svn', svn, 'keyword')
   447 
   447