)]}'
{
  "commit": "13891f63e84fc829cf40c63b4ede3d26002474e2",
  "tree": "0202563e556ec41f028bc005d48cafffcc6c1903",
  "parents": [
    "439a73df6185140dab571bb627597e32a98e5f94"
  ],
  "author": {
    "name": "Brian Silverman",
    "email": "bsilver16384@gmail.com",
    "time": "Mon Jun 22 16:46:40 2015 +0000"
  },
  "committer": {
    "name": "Laszlo Csomor",
    "email": "laszlocsomor@google.com",
    "time": "Tue Jun 23 09:02:33 2015 +0000"
  },
  "message": "Allow Skylark to access information about runfiles.\n\nThis is important to build packages of bazel-built code, especially\npython.\n\nSimple example usage:\ndef _runfiles_test_impl(ctx):\n  runfiles_provider \u003d provider(ctx.attr.src, \u0027analysis.RunfilesProvider\u0027)\n  runfiles \u003d runfiles_provider.default_runfiles.artifacts\n\n  commands \u003d []\n  for f in runfiles:\n    commands +\u003d [\n      \u0027mkdir -p $(dirname %s/%s)\u0027 % (ctx.outputs.outdir.path, f.short_path),\n      \u0027cp %s %s/%s\u0027 % (f.path, ctx.outputs.outdir.path, f.short_path),\n    ]\n  ctx.action(\n    outputs \u003d [ ctx.outputs.outdir ],\n    inputs \u003d list(runfiles),\n    command \u003d \u0027 \u0026\u0026 \u0027.join(commands)\n  )\n\n\u0027\u0027\u0027A simple rule which copies all the runfiles from src into outdir.\u0027\u0027\u0027\nrunfiles_buildtest \u003d rule(\n  implementation \u003d _runfiles_test_impl,\n  attrs \u003d {\n    \u0027src\u0027: attr.label(allow_files\u003dFalse, mandatory\u003dTrue),\n    \u0027outdir\u0027: attr.output(mandatory\u003dTrue),\n  },\n)\n\n--\nChange-Id: I8fbd4c6ea462685142cf199dfe3348bc4436cdcb\nReviewed-on: https://bazel-review.googlesource.com/1530\nMOS_MIGRATED_REVID\u003d96576360\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d2da3c65e83a71aa3feb3f356138790e3c5cbcf5",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/analysis/Runfiles.java",
      "new_id": "b4d70473942b2fb13d7a947f6de0a33ac0a1b085",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/analysis/Runfiles.java"
    }
  ]
}
