Page MenuHomePhabricator

Rename "getWorkingCopy()" to "getWorkingCopyIdentity()" in Arcanist
ClosedPublic

Authored by epriestley on Apr 8 2020, 7:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 2:55 PM
Unknown Object (File)
Wed, Oct 23, 1:57 AM
Unknown Object (File)
Oct 19 2024, 8:02 AM
Unknown Object (File)
Oct 15 2024, 7:32 PM
Unknown Object (File)
Oct 9 2024, 1:08 PM
Unknown Object (File)
Sep 16 2024, 4:56 AM
Unknown Object (File)
Sep 9 2024, 3:10 PM
Unknown Object (File)
Sep 6 2024, 7:16 AM
Subscribers
None

Details

Summary

Depends on D21074. Ref T13490. Ref T11968. Before toolsets, Arcanist has a "WorkingCopyIdentity" object. After toolsets, it has a "WorkingCopy" object.

Most workflows don't access either one, so make a slightly-breaking API change to simplify the transition.

  • "getWorkingCopy()" now returns a modern object (a "WorkingCopy").
  • "getWorkingCopyIdentity()" now returns an older object (a "WorkingCopyIdentity").

This isn't backward-compatible, but out-of-date code should get an explicit failure with clear resolution steps.

Test Plan

Ran "arc lint", "arc branch", and a few other commands. Grepped for "getWorkingCopy()".

Diff Detail

Repository
rARC Arcanist
Branch
hpx2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24022
Build 33064: Run Core Tests
Build 33063: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Apr 10 2020, 11:24 AM
This revision was automatically updated to reflect the committed changes.