)]}'
{
  "commit": "affca0d4aba3885f99f70ebbbe2f3fc32a04c8a9",
  "tree": "f4bf3db6b7bca78ac550aee8b621ec84501ff4bf",
  "parents": [
    "344ec873706a82a7e071bab02daee22bb04ad70a"
  ],
  "author": {
    "name": "Rahul Yadav",
    "email": "yadavrah@google.com",
    "time": "Wed Nov 18 03:12:43 2026 +0000"
  },
  "committer": {
    "name": "gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Mon Nov 23 11:08:55 2026 -0800"
  },
  "message": "sync: add repo.smartsyncdefault checkout policy\n\nWorkspace managers that provision repo checkouts need a way to make\nSmart Sync the default for branches that define a manifest server,\nwithout silently falling back to ToT on Smart Sync failures (where\nunapproved or broken ToT trees defeat the point of Smart Sync).\n\nPreviously, setting repo.smartsync\u003dtrue on init had two drawbacks:\nit overrode per-user sync.smartsync\u003dfalse and manifest-level opt-outs,\nand default Smart Sync failures still fell back silently to ToT.\nRemoving \u003cmanifest-server\u003e from a branch manifest to opt out also broke\nexplicit -s/-t syncs.\n\nWith repo.smartsyncdefault\u003dexplicit configured on a checkout:\n\n- Plain repo sync enables Smart Sync whenever the manifest defines\n  \u003cmanifest-server\u003e, unless overridden by CLI flags, repo.smartsync,\n  sync.smartsync, or \u003cdefault sync-smartsync\u003d\"false\"/\u003e.\n- Default-enabled Smart Sync failures abort the sync instead of\n  falling back to ToT, and print a hint pointing users to\n  --no-smart-sync (or --head) to bypass Smart Sync for that sync.\n- Branches without \u003cmanifest-server\u003e or with\n  \u003cdefault sync-smartsync\u003d\"false\"/\u003e sync ToT by default while keeping\n  explicit -s/-t functional.\n\nBug: 543101585\nBug: 568962967\nTest: pytest tests/test_manifest_xml.py tests/test_project.py\nTest: pytest tests/test_subcmds_sync.py tests/e2e/test_init_sync.py\nChange-Id: I5de45544df84366592978dd81c01e10dae964a1e\nReviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/658243\nTested-by: Rahul Yadav \u003cyadavrah@google.com\u003e\nReviewed-by: Gavin Mak \u003cgavinmak@google.com\u003e\nCommit-Queue: Rahul Yadav \u003cyadavrah@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2db833f764b2e75c8bff73d20c84019de6dda809",
      "old_mode": 33188,
      "old_path": "docs/internal-fs-layout.md",
      "new_id": "9928d09260501aac68774dd43e4215ff59ff42b7",
      "new_mode": 33188,
      "new_path": "docs/internal-fs-layout.md"
    },
    {
      "type": "modify",
      "old_id": "aa4a5107d50909adbb1086477a9c252446ace95e",
      "old_mode": 33188,
      "old_path": "docs/manifest-format.md",
      "new_id": "75f0394361da594b394001f48725c4d542c0ab31",
      "new_mode": 33188,
      "new_path": "docs/manifest-format.md"
    },
    {
      "type": "modify",
      "old_id": "279595cdf78de4d63583518dfcd0d162516d9605",
      "old_mode": 33188,
      "old_path": "docs/smart-sync.md",
      "new_id": "210d6d1523e93d9b9d8153fd11a24e5cf587de88",
      "new_mode": 33188,
      "new_path": "docs/smart-sync.md"
    },
    {
      "type": "modify",
      "old_id": "5a7e45aa396edbc3336178d1c7ab44991d4678e6",
      "old_mode": 33188,
      "old_path": "man/repo-manifest.1",
      "new_id": "d83c829340bd168b0841d8c535d5501fbaa711cf",
      "new_mode": 33188,
      "new_path": "man/repo-manifest.1"
    },
    {
      "type": "modify",
      "old_id": "222be525361c2730d13324e522181f99e2f06b56",
      "old_mode": 33188,
      "old_path": "manifest_xml.py",
      "new_id": "39aed64b5a9041428b032b338dc64b8f6ecec779",
      "new_mode": 33188,
      "new_path": "manifest_xml.py"
    },
    {
      "type": "modify",
      "old_id": "bbe449daf485703ff5b40e5c57c356e18c85dc87",
      "old_mode": 33188,
      "old_path": "project.py",
      "new_id": "8f4f3244a702e89e3a1719acb17ee0393fdd215d",
      "new_mode": 33188,
      "new_path": "project.py"
    },
    {
      "type": "modify",
      "old_id": "660dbe10004d4274cdd1d3c91eab4595836fe48b",
      "old_mode": 33188,
      "old_path": "subcmds/sync.py",
      "new_id": "f53648da20ac4198017025ec2242d3bd7be2b2ac",
      "new_mode": 33188,
      "new_path": "subcmds/sync.py"
    },
    {
      "type": "modify",
      "old_id": "6c6a57a2d48f32452771c2fdb81c8a1f6d6017cd",
      "old_mode": 33188,
      "old_path": "tests/e2e/test_init_sync.py",
      "new_id": "2973cc98739808732cfa04ee44f04ee7812c0d2a",
      "new_mode": 33188,
      "new_path": "tests/e2e/test_init_sync.py"
    },
    {
      "type": "modify",
      "old_id": "58202b2656d8ce991fa04cc0671e37aada6fb84f",
      "old_mode": 33188,
      "old_path": "tests/test_manifest_xml.py",
      "new_id": "65240342e01e4a977df0a112eb7cf5d2bdca44fc",
      "new_mode": 33188,
      "new_path": "tests/test_manifest_xml.py"
    },
    {
      "type": "modify",
      "old_id": "edcf04d07cee4d883e341c39429db2f5e0417769",
      "old_mode": 33188,
      "old_path": "tests/test_project.py",
      "new_id": "bab4c8d307447b5c8a11df55aed373081a81e5db",
      "new_mode": 33188,
      "new_path": "tests/test_project.py"
    },
    {
      "type": "modify",
      "old_id": "fef29fe1e0647d8a8ed1183b866d5c077d0e61e4",
      "old_mode": 33188,
      "old_path": "tests/test_subcmds_sync.py",
      "new_id": "7ec6218cb23e180fe5e4512d75c5d8bfa6b99447",
      "new_mode": 33188,
      "new_path": "tests/test_subcmds_sync.py"
    }
  ]
}
