def get_config(config_file, repo, ctx, dir):
 config_file = basic_util.strip_path(config_file)
 for changeset in reversed_upper_bounded_changelog(repo, ctx):
  changeset_ctx = repo.changectx(changeset)
  for ctx_file in changeset_ctx.files():
   ctx_file_name = basic_util.strip_path(ctx_file)
   if (ctx_file_name == config_file):
    return get_named_tmpfile_from_ctx(changeset_ctx, ctx_file, dir)
 return None

def get_config ( config_file , repo , ctx , dir ) : config_file = basic_util . strip_path ( config_file ) for changeset in reversed_upper_bounded_changelog ( repo , ctx ) : changeset_ctx = repo . changectx ( changeset ) for ctx_file in changeset_ctx . files ( ) : ctx_file_name = basic_util . strip_path ( ctx_file ) if ( ctx_file_name == config_file ) : return get_named_tmpfile_from_ctx ( changeset_ctx , ctx_file , dir ) return None
load configuration from ini .