Differential D14829 Diff 35856 src/applications/differential/customfield/DifferentialBranchField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialBranchField.php
| Show All 39 Lines | private function getBranchDescription(DifferentialDiff $diff) { | ||||
| $bookmark = $diff->getBookmark(); | $bookmark = $diff->getBookmark(); | ||||
| if (strlen($branch) && strlen($bookmark)) { | if (strlen($branch) && strlen($bookmark)) { | ||||
| return pht('%s (bookmark) on %s (branch)', $bookmark, $branch); | return pht('%s (bookmark) on %s (branch)', $bookmark, $branch); | ||||
| } else if (strlen($bookmark)) { | } else if (strlen($bookmark)) { | ||||
| return pht('%s (bookmark)', $bookmark); | return pht('%s (bookmark)', $bookmark); | ||||
| } else if (strlen($branch)) { | } else if (strlen($branch)) { | ||||
| $onto = $diff->loadTargetBranch(); | $onto = $diff->loadTargetBranch(); | ||||
| if (strlen($onto)) { | if (strlen($onto) && ($onto !== $branch)) { | ||||
| return pht( | return pht( | ||||
| '%s (branched from %s)', | '%s (branched from %s)', | ||||
| $branch, | $branch, | ||||
| $onto); | $onto); | ||||
| } else { | } else { | ||||
| return $branch; | return $branch; | ||||
| } | } | ||||
| } else { | } else { | ||||
| Show All 40 Lines | |||||