]> khamidou — GitHub mirrors - arcanist.git/commit
Don't let "arc which" identify the working copy as belonging to a different project
authorepriestley <git@epriestley.com>
Tue, 10 Apr 2012 23:06:57 +0000 (16:06 -0700)
committerepriestley <git@epriestley.com>
Tue, 10 Apr 2012 23:06:57 +0000 (16:06 -0700)
commitd2915d8c5f20bd9d7a62c7167cc6ce1a4b935bee
tree9cf747812f41ac7f56429137b678052ae7ae40d2
parent7ea51b6bb77baec1c2d15d98c99e708df9b676d1
Don't let "arc which" identify the working copy as belonging to a different project

Summary: If you have two projects (say, libphutil and arcanist) and you prepare a patch for one of them on branch "master", run "arc diff", and then prepare a patch for the other one on the same branch, "arc diff" will try to update the first revision when you run it. Instead, make it smart enough to stay within arc projects.

Test Plan: Ran "arc which" in circumstances where it previously generated a false positive, no false positive.

Reviewers: btrahan, vrana, jungejason

Reviewed By: jungejason

CC: aran
Maniphest Tasks: T1100

Differential Revision: https://secure.phabricator.com/D2199
src/repository/api/git/ArcanistGitAPI.php
src/repository/api/subversion/ArcanistSubversionAPI.php