]> khamidou — GitHub mirrors - arcanist.git/commit
Improve arc commit with SVN branches
authorEric Stern <eric@ericstern.com>
Sun, 4 Aug 2013 16:01:22 +0000 (09:01 -0700)
committerepriestley <git@epriestley.com>
Sun, 4 Aug 2013 16:01:22 +0000 (09:01 -0700)
commitdccc8571d70e59736b4f9860b4595050d1e91a04
tree873c2d271068773d2ff88524862318aa8efaf4f8
parent5e3b4360996a3eea3d7c0bcbc5c00e2379091de8
Improve arc commit with SVN branches

Summary:
If you are trying to commit someone else's diff, arc commit gives warnings about path mismatch. This changes the path comparison to be based on the repo url rather than the local working directory. E.g. if both the author and committer are working in branches/release/2013_08_07 despite being checked out in ~/dev/2013_08_07 (system user being different, of course) it no longer warns that the WC path is different

Original behavior:

eric@Eric-MBP ~/dev/2013_07_31: arc commit --revision 21
You are not the author of 'D21: WeMerge Automatic Request'. Commit this
revision anyway? [y/N] y

Revision 'D21: WeMerge Automatic Request' was generated from '', but
current working copy root is '/Users/eric/dev/2013_07_31/'. Commit this
revision anyway? [y/N] y

Committing 'D21: WeMerge Automatic Request'...
Adding         test
Transmitting file data .
Committed revision 52676.
Closing revision D21 'WeMerge Automatic Request'...
Exception
ERR-CONDUIT-CORE: You can not mark a revision you don't own as closed.
(Run with --trace for a full exception trace.)

New behavior:

eric@Eric-MBP ~/dev/2013_07_31: arc commit --revision 24

You are not the author of 'D24: WeMerge Automatic Request'. Commit this
revision anyway? [y/N] y

Committing 'D24: WeMerge Automatic Request'...
Adding         test
Transmitting file data .
Committed revision 52679.
Closing revision D24 'WeMerge Automatic Request'...
Exception
ERR-CONDUIT-CORE: You can not mark a revision you don't own as closed.
(Run with --trace for a full exception trace.)

Test Plan: 'arc diff' changes with one user. 'arc patch Dxx' on a different working copy by a different user to review and test changes. accept review. 'arc commit --revision xx' as reviewer to land the patch. complaint goes away.

Reviewers: epriestley, ghostwriter78

Reviewed By: epriestley

CC: aran, epriestley, Korvin
Differential Revision: https://secure.phabricator.com/D6665
src/repository/api/ArcanistSubversionAPI.php
src/repository/api/__tests__/ArcanistRepositoryAPIStateTestCase.php
src/workflow/ArcanistCommitWorkflow.php