Constants - libvcs.url.constants¶

Constants shared across libvcs.url.

libvcs.url.constants.RE_USER = '\n    ((?P<user>[^/:@]+)@)?\n'¶

Optional user, e.g. ‘git@’

libvcs.url.constants.RE_SCP = "\n    # Server, e.g. 'github.com'.\n    (?P<hostname>([^/:]+))\n    (?P<separator>:)\n    # The server-side path. e.g. 'user/project.git'. Must start with an\n    # alphanumeric character so as not to be confusable with a Windows paths\n    # like 'C:/foo/bar' or 'C:\\foo\\bar'.\n    (?P<path>(\\w[^:.]+))\n"¶

Regular expression for scp-style of git URLs.

libvcs.url.constants.RE_PIP_REV = '\n    (@(?P<rev>.*))\n'¶

Pip-style revision for branch or revision.