Page MenuHomePhabricator

fix tab complete for out-of-workdir
ClosedPublic

Authored by avivey on Mar 20 2014, 6:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 6, 1:55 PM
Unknown Object (File)
Fri, May 3, 10:04 AM
Unknown Object (File)
Thu, May 2, 1:08 AM
Unknown Object (File)
Tue, Apr 30, 12:12 AM
Unknown Object (File)
Sat, Apr 27, 11:22 PM
Unknown Object (File)
Thu, Apr 25, 3:15 AM
Unknown Object (File)
Fri, Apr 12, 1:45 PM
Unknown Object (File)
Apr 8 2024, 12:07 PM
Subscribers

Details

Summary

see https://github.com/facebook/phabricator/issues/546 - arc complete blows up when not
in a workdir.

There's no "is ArcanistWorkingCopyIdentity object valid" method, but getVCSType() looks like the
closest match.

git grep for getProjectRoot didn't reveal any more problmatic call sites.

Test Plan

arc [tab] [tab]

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

avivey retitled this revision from to fix tab complete for out-of-workdir.
avivey updated this object.
avivey edited the test plan for this revision. (Show Details)
avivey added a reviewer: epriestley.

Thanks! I have to head to a meeting but I'll look at this later on.

my git-grep from earlier was wrong; there are many more invocations of getProjectRoot() I haven't seed then.

avivey edited edge metadata.

These two places were also testing for the wrong thing. The actual result is mostly just a different error message, but that's also something.

All other callsites are either in lint/unit code, in a "resolve path" context, or in other places where an
API is already expected.

epriestley edited edge metadata.

This seems pretty reasonable to me, thanks!

This revision is now accepted and ready to land.Mar 26 2014, 12:33 AM
epriestley updated this revision to Diff 20438.

Closed by commit rARCd0bab7f34aab (authored by @avivey, committed by @epriestley).