Changeset View
Changeset View
Standalone View
Standalone View
scripts/symbols/import_repository_symbols.php
| Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Lines | foreach ($input as $key => $line) { | ||||
| } catch (Exception $e) { | } catch (Exception $e) { | ||||
| if ($args->getArg('ignore-errors')) { | if ($args->getArg('ignore-errors')) { | ||||
| continue; | continue; | ||||
| } else { | } else { | ||||
| throw $e; | throw $e; | ||||
| } | } | ||||
| } | } | ||||
| if (count ($symbols) >= $args->getArg('max-transaction')) { | if (count($symbols) >= $args->getArg('max-transaction')) { | ||||
| try { | try { | ||||
| echo pht( | echo pht( | ||||
| "Committing %s symbols...\n", | "Committing %s symbols...\n", | ||||
| new PhutilNumber($args->getArg('max-transaction'))); | new PhutilNumber($args->getArg('max-transaction'))); | ||||
| commit_symbols($symbols, $repository, $no_purge); | commit_symbols($symbols, $repository, $no_purge); | ||||
| $no_purge = true; | $no_purge = true; | ||||
| unset($symbols); | unset($symbols); | ||||
| $symbols = array(); | $symbols = array(); | ||||
| Show All 15 Lines | |||||