1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Refactored the version control feature

This commit is contained in:
Jannis Leidel 2009-01-12 00:59:55 +01:00
parent c0e5eeb87b
commit d70b32905b
2 changed files with 600 additions and 589 deletions

1171
pip.py

File diff suppressed because it is too large Load diff

View file

@ -69,8 +69,8 @@ What about a Git clone?::
>>> reset_env()
>>> env = get_env()
>>> result = env.run('git', 'clone', 'git://github.com/ericflo/django-pagination.git', 'django-pagination')
>>> result = env.run('git', 'checkout', '1df6507872d73ee387eb375428eafbfc253dfcd8',
>>> result = env.run('git', 'clone', 'git://git.websushi.org/apps/django-pagination/', 'django-pagination')
>>> result = env.run('git', 'checkout', 'bdc85c1526d84742362b00a6012b3677a4f69f51',
... cwd=os.path.join(env.base_path, 'django-pagination'), expect_stderr=True)
>>> result = env.run(os.path.join(env.base_path, 'bin/python'), 'setup.py', 'develop',
... cwd=os.path.join(env.base_path, 'django-pagination'))
@ -78,22 +78,22 @@ What about a Git clone?::
>>> print result
Script result: ...ython... ../../pip.py -E .../test-scratch freeze
-- stderr: --------------------
Git URL does not fit normal structure: git://github.com/ericflo/django-pagination.git
Git URL does not fit normal structure: git://git.websushi.org/apps/django-pagination/
<BLANKLINE>
-- stdout: --------------------
-e git://github.com/ericflo/django-pagination.git@...#egg=django_pagination-dev
-e git://git.websushi.org/apps/django-pagination/@...#egg=django_pagination-...
...
<BLANKLINE>
>>> result = run_pip('freeze', '-f', 'git://github.com/ericflo/django-pagination.git#egg=django_pagination-dev', expect_stderr=True)
>>> result = run_pip('freeze', '-f', 'git://git.websushi.org/apps/django-pagination/#egg=django_pagination-dev', expect_stderr=True)
>>> print result
Script result: ...ython... ../../pip.py -E .../test-scratch freeze -f git://github.com/ericflo/django-pagination.git#egg=django_pagination-dev
Script result: ...ython... ../../pip.py -E .../test-scratch freeze -f git://git.websushi.org/apps/django-pagination/#egg=django_pagination-dev
-- stderr: --------------------
Git URL does not fit normal structure: git://github.com/ericflo/django-pagination.git
Git URL does not fit normal structure: git://git.websushi.org/apps/django-pagination/
<BLANKLINE>
-- stdout: --------------------
-f git://github.com/ericflo/django-pagination.git#egg=django_pagination-dev
-e git://github.com/ericflo/django-pagination.git@...#egg=django_pagination-dev
-f git://git.websushi.org/apps/django-pagination/#egg=django_pagination-dev
-e git://git.websushi.org/apps/django-pagination/@...#egg=django_pagination-dev
...
<BLANKLINE>