This commit is contained in:
Matjaž Horvat 2015-07-29 07:11:27 +02:00
Родитель cc978ea7a5
Коммит 190ce5b45d
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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.')