Changeset View
Changeset View
Standalone View
Standalone View
src/land/engine/ArcanistMercurialLandEngine.php
| Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | foreach ($marker_types as $marker_type) { | ||||
| pht('AMBIGUOUS SYMBOL'), | pht('AMBIGUOUS SYMBOL'), | ||||
| pht( | pht( | ||||
| 'Symbol "%s" is ambiguous: it matches multiple markers '. | 'Symbol "%s" is ambiguous: it matches multiple markers '. | ||||
| '(of type "%s"). Use an unambiguous identifier.', | '(of type "%s"). Use an unambiguous identifier.', | ||||
| $raw_symbol, | $raw_symbol, | ||||
| $marker_type)); | $marker_type)); | ||||
| foreach ($named_markers as $named_marker) { | foreach ($named_markers as $named_marker) { | ||||
| echo tsprintf('%s', $named_marker->newDisplayRef()); | echo tsprintf('%s', $named_marker->newRefView()); | ||||
| } | } | ||||
| echo tsprintf("\n"); | echo tsprintf("\n"); | ||||
| throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
| pht( | pht( | ||||
| 'Symbol "%s" is ambiguous.', | 'Symbol "%s" is ambiguous.', | ||||
| $symbol)); | $symbol)); | ||||
| ▲ Show 20 Lines • Show All 202 Lines • ▼ Show 20 Lines | foreach ($onto_markers as $onto_marker) { | ||||
| 'in Mercurial: Mercurial commits may only belong to one '. | 'in Mercurial: Mercurial commits may only belong to one '. | ||||
| 'branch, so this operation can not be executed atomically.'), | 'branch, so this operation can not be executed atomically.'), | ||||
| pht( | pht( | ||||
| 'You may land one branches and any number of bookmarks in a '. | 'You may land one branches and any number of bookmarks in a '. | ||||
| 'single operation.'), | 'single operation.'), | ||||
| pht('These branches were selected:')); | pht('These branches were selected:')); | ||||
| foreach ($branches as $branch) { | foreach ($branches as $branch) { | ||||
| echo tsprintf('%s', $branch->newDisplayRef()); | echo tsprintf('%s', $branch->newRefView()); | ||||
| } | } | ||||
| echo tsprintf("\n"); | echo tsprintf("\n"); | ||||
| throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
| pht( | pht( | ||||
| 'Landing onto multiple branches at once is not supported in '. | 'Landing onto multiple branches at once is not supported in '. | ||||
| 'Mercurial.')); | 'Mercurial.')); | ||||
| } else if ($branch_count) { | } else if ($branch_count) { | ||||
| $this->ontoBranchMarker = head($branches); | $this->ontoBranchMarker = head($branches); | ||||
| } | } | ||||
| } | } | ||||
| if ($new_markers) { | if ($new_markers) { | ||||
| echo tsprintf( | echo tsprintf( | ||||
| "\n%!\n%W\n\n", | "\n%!\n%W\n\n", | ||||
| pht('CREATE %s BOOKMARK(S)', phutil_count($new_markers)), | pht('CREATE %s BOOKMARK(S)', phutil_count($new_markers)), | ||||
| pht( | pht( | ||||
| 'These %s symbol(s) do not exist in the remote. They will be created '. | 'These %s symbol(s) do not exist in the remote. They will be created '. | ||||
| 'as new bookmarks:', | 'as new bookmarks:', | ||||
| phutil_count($new_markers))); | phutil_count($new_markers))); | ||||
| foreach ($new_markers as $new_marker) { | foreach ($new_markers as $new_marker) { | ||||
| echo tsprintf('%s', $new_marker->newDisplayRef()); | echo tsprintf('%s', $new_marker->newRefView()); | ||||
| } | } | ||||
| echo tsprintf("\n"); | echo tsprintf("\n"); | ||||
| $query = pht( | $query = pht( | ||||
| 'Create %s new remote bookmark(s)?', | 'Create %s new remote bookmark(s)?', | ||||
| phutil_count($new_markers)); | phutil_count($new_markers)); | ||||
| ▲ Show 20 Lines • Show All 720 Lines • Show Last 20 Lines | |||||