Page MenuHomePhabricator

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

Authored by epriestley on Apr 8 2020, 7:37 PM.
Tags
None
Referenced Files
F15447753: D21075.id50204.diff
Fri, Mar 28, 1:23 AM
F15442398: D21075.id.diff
Wed, Mar 26, 11:11 PM
F15440018: D21075.id50210.diff
Wed, Mar 26, 10:45 AM
F15432717: D21075.diff
Mon, Mar 24, 7:31 PM
F15423315: D21075.diff
Sat, Mar 22, 2:44 PM
F15368829: D21075.diff
Wed, Mar 12, 4:01 AM
Unknown Object (File)
Mon, Mar 3, 5:08 PM
Unknown Object (File)
Mon, Mar 3, 8:01 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.