зеркало из https://github.com/mozilla/pontoon.git
Add comments
This commit is contained in:
Родитель
cc978ea7a5
Коммит
190ce5b45d
|
@ -58,10 +58,12 @@ def pull(url, target):
|
|||
# Undo local changes
|
||||
execute(['hg', 'revert', '--all', '--no-backup'], target)
|
||||
|
||||
# Pull
|
||||
code, output, error = execute(['hg', 'pull', '-u'], target)
|
||||
if code == 0:
|
||||
print('Repository at ' + url + ' updated.')
|
||||
|
||||
# Clone
|
||||
else:
|
||||
print(unicode(error))
|
||||
print('Clone instead.')
|
||||
|
|
Загрузка…
Ссылка в новой задаче