Page MenuHomePhabricator

Remove reentrant code
ClosedPublic

Authored by joshuaspence on May 25 2015, 12:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 5:03 AM
Unknown Object (File)
Fri, Dec 6, 1:01 PM
Unknown Object (File)
Thu, Dec 5, 4:03 PM
Unknown Object (File)
Wed, Dec 4, 2:29 PM
Unknown Object (File)
Sun, Nov 24, 8:30 PM
Unknown Object (File)
Nov 22 2024, 8:38 AM
Unknown Object (File)
Nov 22 2024, 7:57 AM
Unknown Object (File)
Nov 22 2024, 4:34 AM
Subscribers

Details

Summary

Ref T7604. Remove the reenter_if_this_is_arcanist_or_libphutil function. Some discussion in D12945.

Test Plan

Ran ./bin/arc --trace help and saw things happen as expected.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Remove reentrant code.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.

ARC_PHUTIL_PATH can likely be removed from whatever references it now, too, I think?

This revision is now accepted and ready to land.May 25 2015, 12:19 PM

I suppose it doesn't necessarily hurt anything to leave it.

Yeah I think we should just leave it.

I can't manage to reproduce it now, but I somehow got this error:

Usage Exception: You are trying to run one copy of Arcanist on another copy of Arcanist. This operation is not supported. To execute Arcanist operations against this working copy, run `./bin/arc` (from the current working copy) not some other copy of 'arc'

Assuming you were actually doing that (i.e., the error is not a false positive), I think that's fine/desirable (it addresses the confusing case above, and shouldn't ever impact any normal users).

Yeah it wasn't a false positive... I just thought it had to do with the reentrant stuff.

This revision was automatically updated to reflect the committed changes.