@@ -0,0 +1,1170 @@
+#!/usr/bin/env python%0A# Copyright 2014 The Chromium Authors. All rights reserved.%0A# Use of this source code is governed by a BSD-style license that can be%0A# found in the LICENSE file.%0A%0A# Knows how to pull down files from the version of Blink we forked from.%0A%0Aimport argparse%0Aimport requests%0Aimport os%0Aimport sys%0A%0AFORK_VERSION = %22086acdd04cbe6fcb89b2fc6bd438fb8819a26776%22%0A%0Aparser = argparse.ArgumentParser(%22Tool for resurrecting pre-fork Blink files.%22)%0Aparser.add_argument(%22path%22, help=%22Path from Blink's Source root to the file.%22%0A    %22e.g. core/dom/ExecutionContextTask.h%22)%0Aargs = parser.parse_args()%0A%0ABASE_URL = %22http://blink.lc/blink/plain/Source/%25s?id=%25s%22%0Aurl = BASE_URL %25 (args.path, FORK_VERSION)%0Aresponse = requests.get(url)%0Aif response.status_code != 200:%0A    print %22Load failure: %25s%22 %25 url%0A    sys.exit(0)%0Acontents = response.text%0A%0Afile_name = os.path.basename(args.path)%0A%0Aif os.path.exists(file_name):%0A    print %22%25s exists, do you want to overwrite %5By/N%5D?%22 %25 file_name%0A    if raw_input().lower() not in ('y', 'yes'):%0A        print %22Aborting.%22%0A        sys.exit(1)%0A%0Awith open(file_name, %22w+%22) as output:%0A    output.write(contents)%0A    print %22Wrote %25s%22 %25 file_name

Add a little script for resurrecting pre-fork Blink files