Page MenuHomePhabricator

Creating an arc diff from a working directory that is not the repository root
Open, Needs TriagePublic

Description

I use arc under windows 7 with git bash.
When I perform an arc diff from a working directory other than the repository root, I get

$ arc diff
Usage Exception: `arc diff` is only supported under git, hg, svn.

It would be a very convenient feature if this action could be done from anywhere in the repository.

Related Objects

Event Timeline

How can I reproduce this locally?

From your reaction I take it that this behaviour is not supposed to be.

Clone a repository in a folder repo/ under windows 7.
Put an .arcconfig file in repo/ containing

{
    "history.immutable" : true,
    "phabricator.uri" : "http://lmyserver/"
}

From a git bash do:

$ cd repo/some/folder
$ arc diff
Usage Exception: `arc diff` is only supported under git, hg, svn.
$ cd repo/
$ arc diff
# Everything is fine, text editor boots up

I'm going to guess this is T8298. These commands run fine in *nix, but not on Windows. There are diffs out for review.

Sounds reasonable. Thanks for the quick response.