L10n:Migration: Difference between revisions

1,524 bytes removed ,  20 December 2016
Line 71: Line 71:
# Path to migration script, without trailing slash (removed if present)
# Path to migration script, without trailing slash (removed if present)
# Use $HOME instead of ~ if needed
# Use $HOME instead of ~ if needed
migration_path="$HOME/mozilla-central/python/devtools/migrate-l10n/migrate"
# migration_path="$HOME/mozilla-central/python/devtools/migrate-l10n/migrate"
migration_path=${migration_path%/}
# migration_path=${migration_path%/}
    
    
for loc in $LOCS; do
for loc in $LOCS; do
  # Default migration actions
   hg -R mozilla-beta/$loc pull -u -r default
   hg -R mozilla-beta/$loc pull -u -r default
   hg -R mozilla-aurora/$loc pull -u -r default
   hg -R mozilla-aurora/$loc pull -u -r default
   hg -R mozilla-beta/$loc no-op-merge -m"Migrating aurora to beta for Firefox 51" $PWD/mozilla-aurora/$loc
   hg -R mozilla-beta/$loc no-op-merge -m"Migrating aurora to beta for Firefox 52" $PWD/mozilla-aurora/$loc
   hg -R mozilla-beta/$loc push -r default ssh://hg.mozilla.org/releases/l10n/mozilla-beta/$loc
   hg -R mozilla-beta/$loc push -r default ssh://hg.mozilla.org/releases/l10n/mozilla-beta/$loc
   hg -R mozilla-aurora/$loc pull -u -r default mozilla-beta/$loc
   hg -R mozilla-aurora/$loc pull -u -r default mozilla-beta/$loc
  # Specific for 52 on aurora:
  hg --cwd mozilla-aurora/$loc rm browser/searchplugins/list.txt
  hg --cwd mozilla-aurora/$loc ci -m 'Bug 1276739 - Switch search to use a JSON based format'
  hg --cwd mozilla-aurora/$loc rm browser/searchplugins
  hg --cwd mozilla-aurora/$loc ci -m 'Bug 1276740 - Centralize all search plugins into mozilla-central'
  hg --cwd mozilla-aurora/$loc rm mail/searchplugins/list.txt
  hg --cwd mozilla-aurora/$loc ci -m 'Bug 1300199 - Switch search to use a JSON based format'
  hg --cwd mozilla-aurora/$loc rm devtools/client/promisedebugger.dtd
  hg --cwd mozilla-aurora/$loc ci -m 'Bug 1311506 - Remove promise debugger'


   # Migrate devtools strings https://bugzilla.mozilla.org/show_bug.cgi?id=1294186
   # Specific for 53 on aurora:
   isCentralLocale $loc
   hg --cwd mozilla-aurora/$loc rm toolkit/chrome/mozapps/downloads/downloads.dtd
  if [ $? -eq 1 ] ; then
  hg --cwd mozilla-aurora/$loc ci -m 'Bug 1319762 - Remove download.xul and related unused files'
    # Ignore locales working on mozilla-central
  hg --cwd mozilla-aurora/$loc rm toolkit/chrome/formautofill/requestAutocomplete.dtd
    continue
  hg --cwd mozilla-aurora/$loc ci -m 'Bug 1322622 - Rename the obsolete requestAutocomplete package out of the way of form autofill'
  else
 
    python ${migration_path}/main.py mozilla-aurora/$loc -c ${migration_path}/conf/bug1294186
    hg --cwd mozilla-aurora/$loc rm devtools/client/font-inspector.dtd
    hg --cwd mozilla-aurora/$loc rm devtools/client/inspector.dtd
    hg --cwd mozilla-aurora/$loc rm devtools/client/layoutview.dtd
    hg --cwd mozilla-aurora/$loc rm devtools/client/styleinspector.dtd
    hg --cwd mozilla-aurora/$loc add devtools/client/boxmodel.properties
    hg --cwd mozilla-aurora/$loc add devtools/client/font-inspector.properties
    hg --cwd mozilla-aurora/$loc add devtools/client/inspector.properties
    hg --cwd mozilla-aurora/$loc add devtools/client/styleinspector.properties
    hg --cwd mozilla-aurora/$loc ci -m 'Bug 1294186 - Migrate inspector.xul from .dtd to .properties'
    python ${migration_path}/main.py mozilla-aurora/$loc -c ${migration_path}/conf/bug1308500_1309191
    hg --cwd mozilla-aurora/$loc rm devtools/client/netmonitor.dtd
    hg --cwd mozilla-aurora/$loc add devtools/client/netmonitor.properties
    hg --cwd mozilla-aurora/$loc ci -m 'Bug 1308500, Bug 1309191 - Migrate NetMonitor from .dtd to .properties'
  fi
   # Push to aurora
   # Push to aurora
   hg --cwd mozilla-aurora/$loc push -r default ssh://hg.mozilla.org/releases/l10n/mozilla-aurora/$loc
   hg --cwd mozilla-aurora/$loc push -r default ssh://hg.mozilla.org/releases/l10n/mozilla-aurora/$loc
263

edits