Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15420556
D7886.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7886.diff
View Options
Index: src/repository/api/ArcanistRepositoryAPI.php
===================================================================
--- src/repository/api/ArcanistRepositoryAPI.php
+++ src/repository/api/ArcanistRepositoryAPI.php
@@ -187,6 +187,14 @@
/**
* @task status
*/
+ final public function getMissingChanges() {
+ return $this->getUncommittedPathsWithMask(self::FLAG_MISSING);
+ }
+
+
+ /**
+ * @task status
+ */
private function getUncommittedPathsWithMask($mask) {
$match = array();
foreach ($this->getUncommittedStatus() as $path => $flags) {
Index: src/workflow/ArcanistBaseWorkflow.php
===================================================================
--- src/workflow/ArcanistBaseWorkflow.php
+++ src/workflow/ArcanistBaseWorkflow.php
@@ -847,6 +847,18 @@
" ".implode("\n ", $conflicts)."\n");
}
+ $missing = $api->getMissingChanges();
+ if ($missing) {
+ throw new ArcanistUsageException(
+ pht(
+ "You have missing files in this working copy. Revert or formally ".
+ "remove them (with `svn rm`) before proceeding.\n\n".
+ "%s".
+ " Missing files in working copy:\n%s\n",
+ $working_copy_desc,
+ " ".implode("\n ", $missing)));
+ }
+
$unstaged = $api->getUnstagedChanges();
if ($unstaged) {
echo "You have unstaged changes in this working copy.\n\n".
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 22, 2:59 PM (2 w, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7383248
Default Alt Text
D7886.diff (1 KB)
Attached To
Mode
D7886: In Subversion, treat missing files similarly to conflicted files
Attached
Detach File
Event Timeline
Log In to Comment