-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Break VCS sections into files for inclusion - Add VCS kind content to package and project - Add VCS location content to package and project - Add VCS branch content to package and project - Add VCS kind content to package and project - Add VCS subdir content to package and project - Put "is required" first for CVS field - Move VCS out of the "Cabal Reference" - Rename include files to vcs/* - Revert "Move VCS out of the "Cabal Reference""
- Loading branch information
1 parent
1103d01
commit c635ce0
Showing
9 changed files
with
114 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.. | ||
VCS branch | ||
Many source control systems support the notion of a branch, as a distinct | ||
concept from having repositories in separate locations. For example CVS, SVN and | ||
git use branches while darcs uses different locations for different branches. If | ||
you need to specify a branch to identify a your repository then specify it in | ||
this field. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. | ||
VCS common fields | ||
Most of the version control system (VCS) fields types are common to both | ||
``source-repository`` and ``source-repository-package`` stanzas. | ||
|
||
.. list-table:: | ||
:header-rows: 1 | ||
:widths: 30 30 40 | ||
|
||
* - Field Name | ||
- source-repository (head|this) | ||
- source-repository-package | ||
* - type | ||
- [x] | ||
- [x] | ||
* - location | ||
- [x] | ||
- [x] | ||
* - branch | ||
- [x] | ||
- [x] | ||
* - tag | ||
- [x] | ||
- [x] | ||
* - subdir | ||
- [x] (0 or 1) | ||
- [x] (0 or 1 for each dependency) | ||
* - module (CVS only) | ||
- [x] | ||
- [_] | ||
* - post-checkout-command | ||
- [_] | ||
- [x] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.. | ||
VCS kind | ||
Cabal supports specifying different information for various common source | ||
control systems. This is the name of the source control system used for a | ||
repository. The currently recognised types are: | ||
|
||
- ``darcs`` | ||
- ``git`` | ||
- ``svn`` | ||
- ``cvs`` | ||
- ``mercurial`` (or alias ``hg``) | ||
- ``bazaar`` (or alias ``bzr``) | ||
- ``arch`` | ||
- ``monotone`` | ||
- ``pijul`` | ||
|
||
The VCS kind will determine what other fields are appropriate to specify for a | ||
particular version control system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. | ||
VCS location | ||
The location of the repository, usually a URL but the exact form of this field | ||
depends on the repository type. For example: | ||
|
||
- for Darcs: ``http://code.haskell.org/foo/`` | ||
- for Git: ``https://github.com/foo/bar.git`` | ||
- for CVS: ``[email protected]:/cvs`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. | ||
VCS subdirectory | ||
A field of this type is always optional because it defaults to empty, which | ||
corresponds to the root directory of the repository and is the same as | ||
specifying ``.`` explicitly. | ||
|
||
Some projects put the sources for multiple packages inside a single VCS | ||
repository. This field lets you specify the relative path from the root of the | ||
repository to the top directory for the package, i.e. the directory containing | ||
the package's ``.cabal`` file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.. | ||
VCS tag | ||
A tag identifies a particular state of a source repository. The exact form of | ||
the tag depends on the repository type. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,93 +3,31 @@ Version Control System Fields | |
|
||
.. _vcs-fields: | ||
|
||
Most of the version control system (VCS) fields types are common to both | ||
``source-repository`` and ``source-repository-package`` stanzas. | ||
|
||
.. list-table:: | ||
:header-rows: 1 | ||
:widths: 30 30 40 | ||
|
||
* - Field Name | ||
- source-repository (head|this) | ||
- source-repository-package | ||
* - type | ||
- [x] | ||
- [x] | ||
* - location | ||
- [x] | ||
- [x] | ||
* - branch | ||
- [x] | ||
- [x] | ||
* - tag | ||
- [x] | ||
- [x] | ||
* - subdir | ||
- [x] (0 or 1) | ||
- [x] (0 or 1 for each dependency) | ||
* - module (CVS only) | ||
- [x] | ||
- [_] | ||
* - post-checkout-command | ||
- [_] | ||
- [x] | ||
.. include:: vcs/fields.rst | ||
|
||
.. _vcs-kind: | ||
|
||
VCS kind | ||
^^^^^^^^ | ||
|
||
Cabal supports specifying different information for various common source | ||
control systems. This is the name of the source control system used for a | ||
repository. The currently recognised types are: | ||
|
||
- ``darcs`` | ||
- ``git`` | ||
- ``svn`` | ||
- ``cvs`` | ||
- ``mercurial`` (or alias ``hg``) | ||
- ``bazaar`` (or alias ``bzr``) | ||
- ``arch`` | ||
- ``monotone`` | ||
- ``pijul`` | ||
|
||
The VCS kind will determine what other fields are appropriate to specify for a | ||
particular version control system. | ||
.. include:: vcs/kind.rst | ||
|
||
VCS location | ||
^^^^^^^^^^^^ | ||
|
||
The location of the repository, usually a URL but the exact form of this field | ||
depends on the repository type. For example: | ||
|
||
- for Darcs: ``http://code.haskell.org/foo/`` | ||
- for Git: ``https://github.com/foo/bar.git`` | ||
- for CVS: ``[email protected]:/cvs`` | ||
.. include:: vcs/location.rst | ||
|
||
VCS branch | ||
^^^^^^^^^^ | ||
|
||
Many source control systems support the notion of a branch, as a distinct | ||
concept from having repositories in separate locations. For example CVS, SVN and | ||
git use branches while darcs uses different locations for different branches. If | ||
you need to specify a branch to identify a your repository then specify it in | ||
this field. | ||
.. include:: vcs/branch.rst | ||
|
||
VCS tag | ||
^^^^^^^ | ||
|
||
A tag identifies a particular state of a source repository. The exact form of | ||
the tag depends on the repository type. | ||
.. include:: vcs/tag.rst | ||
|
||
VCS subdirectory | ||
^^^^^^^^^^^^^^^^ | ||
|
||
A field of this type is always optional because it defaults to empty, which | ||
corresponds to the root directory of the repository and is the same as | ||
specifying ``.`` explicitly. | ||
|
||
Some projects put the sources for multiple packages inside a single VCS | ||
repository. This field lets you specify the relative path from the root of the | ||
repository to the top directory for the package, i.e. the directory containing | ||
the package's ``.cabal`` file. | ||
.. include:: vcs/subdir.rst |