Page MenuHomePhabricator

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

Authored by epriestley on Apr 8 2020, 7:37 PM.
Tags
None
Referenced Files
F15740789: D21075.id.diff
Thu, May 29, 8:48 PM
Unknown Object (File)
Thu, May 29, 9:47 AM
Unknown Object (File)
Tue, May 27, 6:39 PM
Unknown Object (File)
Sat, May 10, 5:28 AM
Unknown Object (File)
Tue, May 6, 6:31 AM
Unknown Object (File)
Apr 29 2025, 5:55 PM
Unknown Object (File)
Apr 29 2025, 11:22 AM
Unknown Object (File)
Apr 27 2025, 9:10 PM
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.