Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14369198
D11715.id28190.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D11715.id28190.diff
View Options
diff --git a/src/applications/differential/controller/DifferentialRevisionViewController.php b/src/applications/differential/controller/DifferentialRevisionViewController.php
--- a/src/applications/differential/controller/DifferentialRevisionViewController.php
+++ b/src/applications/differential/controller/DifferentialRevisionViewController.php
@@ -235,7 +235,7 @@
$whitespace = $request->getStr(
'whitespace',
- DifferentialChangesetParser::WHITESPACE_IGNORE_ALL);
+ DifferentialChangesetParser::WHITESPACE_IGNORE_MOST);
$arc_project = $target->getArcanistProject();
if ($arc_project) {
diff --git a/src/applications/differential/parser/DifferentialChangesetParser.php b/src/applications/differential/parser/DifferentialChangesetParser.php
--- a/src/applications/differential/parser/DifferentialChangesetParser.php
+++ b/src/applications/differential/parser/DifferentialChangesetParser.php
@@ -105,10 +105,7 @@
const WHITESPACE_SHOW_ALL = 'show-all';
const WHITESPACE_IGNORE_TRAILING = 'ignore-trailing';
-
- // TODO: This is now "Ignore Most" in the UI.
- const WHITESPACE_IGNORE_ALL = 'ignore-all';
-
+ const WHITESPACE_IGNORE_MOST = 'ignore-most';
const WHITESPACE_IGNORE_FORCE = 'ignore-force';
public function setOldLines(array $lines) {
@@ -499,11 +496,11 @@
case self::WHITESPACE_IGNORE_FORCE:
break;
default:
- $whitespace_mode = self::WHITESPACE_IGNORE_ALL;
+ $whitespace_mode = self::WHITESPACE_IGNORE_MOST;
break;
}
- $skip_cache = ($whitespace_mode != self::WHITESPACE_IGNORE_ALL);
+ $skip_cache = ($whitespace_mode != self::WHITESPACE_IGNORE_MOST);
if ($this->disableCache) {
$skip_cache = true;
}
@@ -539,7 +536,7 @@
$whitespace_mode = $this->whitespaceMode;
$changeset = $this->changeset;
- $ignore_all = (($whitespace_mode == self::WHITESPACE_IGNORE_ALL) ||
+ $ignore_all = (($whitespace_mode == self::WHITESPACE_IGNORE_MOST) ||
($whitespace_mode == self::WHITESPACE_IGNORE_FORCE));
$force_ignore = ($whitespace_mode == self::WHITESPACE_IGNORE_FORCE);
diff --git a/src/applications/differential/view/DifferentialRevisionUpdateHistoryView.php b/src/applications/differential/view/DifferentialRevisionUpdateHistoryView.php
--- a/src/applications/differential/view/DifferentialRevisionUpdateHistoryView.php
+++ b/src/applications/differential/view/DifferentialRevisionUpdateHistoryView.php
@@ -206,7 +206,7 @@
$options = array(
DifferentialChangesetParser::WHITESPACE_IGNORE_FORCE => 'Ignore All',
- DifferentialChangesetParser::WHITESPACE_IGNORE_ALL => 'Ignore Most',
+ DifferentialChangesetParser::WHITESPACE_IGNORE_MOST => 'Ignore Most',
DifferentialChangesetParser::WHITESPACE_IGNORE_TRAILING =>
'Ignore Trailing',
DifferentialChangesetParser::WHITESPACE_SHOW_ALL => 'Show All',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 4:36 PM (16 h, 23 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6914700
Default Alt Text
D11715.id28190.diff (2 KB)
Attached To
Mode
D11715: Fix a TODO
Attached
Detach File
Event Timeline
Log In to Comment