Задать вопрос

Тел: +7 965 3737 888

474

Просмотров

3

Ответов

Update All Apps to Latest Revision

This snippet is based on #844 and updates all apps in the current directory using hg, svn, git or bzr.

Вопрос полезен? Да0/Нет0
file_5142.py(1.1Кб)
None

Ответы (3):

Ответericflo:18.07.2008
Ответ полезен? Да0/Нет0

Cool! It would be nice if it detected if you had each VCS on your system, too. I wonder if that's easy.

Ответizibi:05.08.2008
Ответ полезен? Да0/Нет0

@dedaluz The script uses the current path (.) so you can do something like this:

cd /home/python/lib
python /path/to/update.py

Or do I misunderstand your problem?

Ответdedaluz:30.07.2008
Ответ полезен? Да0/Нет0

What about searching for apps in subdirs? Let's say I have:

/home/python/lib/

with some apps, and

/home/python/lib/django-apps/

with apps related to Django. And I want to update all my apps under my lib dir.