diff options
Diffstat (limited to 'rpmci/lame_vcs_abstraction.py')
-rw-r--r-- | rpmci/lame_vcs_abstraction.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rpmci/lame_vcs_abstraction.py b/rpmci/lame_vcs_abstraction.py index a96f23d..2d5314e 100644 --- a/rpmci/lame_vcs_abstraction.py +++ b/rpmci/lame_vcs_abstraction.py @@ -22,6 +22,7 @@ from . import async_subprocess class Vcs(object): def __init__(self, parsedurl, directory=None): self._parsed_url = parsedurl + self._url_string = urlparse.urlunsplit(parsedurl) # Deliberately drop params/query self._nonfragment_url_string = urlparse.urlunparse((parsedurl.scheme, parsedurl.netloc, @@ -32,11 +33,17 @@ class Vcs(object): self._dir = directory def get_url(self): + """Retrieve the SplitResult (broken up components tuple) URL for this repository.""" return self._parsed_url def get_base_url_string(self): + """Retrieve the non-branched URL for this repository.""" return self._nonfragment_url_string + def get_url_string(self): + """Retrieve the stringified form of the repository URL.""" + return self._url_string + def checkout_async(self, destdir): """Retrieve a new copy of the source tree, saving as destdir""" raise Exception("not implemented") |