Changes between Version 63 and Version 64 of Building/GettingTheSources
- Timestamp:
- 06/24/11 08:40:33 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Building/GettingTheSources
v63 v64 58 58 The full state of a GHC repository includes the current state of the repositories for all of the GHC boot libraries that are used to to build GHC (see [wiki:Repositories] for a list of the boot libraries). The repositories for these libraries are fetched and updated by the `sync-all` script. To recored the full repository state (including boot libraries), git submodules could be used, but they are not currently in favor (see [wiki:DarcsConversion#Theperspectiveonsubmodules The perspective on submodules] for some reasons why). 59 59 60 As an alternative to git submodules, the `fingerprint.py` script in `utils/fingerprint ` can create a "fingerprint" to uniquely identify a GHC repository state by recording the current commits of the GHC and boot library repositories. This fingerprint can be used later to restore the state of all repositories to the state captured by the fingerprint.60 As an alternative to git submodules, the `fingerprint.py` script in `utils/fingerprint/` can create a "fingerprint" to uniquely identify a GHC repository state by recording the current commits of the GHC and boot library repositories. This fingerprint can be used later to restore the state of all repositories to the state captured by the fingerprint. 61 61 62 62 A fingerprint is created by parsing the output of the `sync-all` command: `./sync-all log HEAD^.. --pretty=oneline`. This command will list each repository along with its commit hash. The fingerprint can be saved for later use. Alternatively, the fingerprint can be created from a [wiki:Builder] log that includes the output of the `sync-all` command above. … … 65 65 66 66 {{{ 67 $ ./utils/fingerprint .py create68 $ ./utils/fingerprint .py create -l builder.log67 $ ./utils/fingerprint/fingerprint.py create 68 $ ./utils/fingerprint/fingerprint.py create -l builder.log 69 69 }}} 70 70 … … 74 74 75 75 {{{ 76 $ ./utils/fingerprint .py restore -f 2011-05-23.fp77 $ ./utils/fingerprint .py restore -l builder.log76 $ ./utils/fingerprint/fingerprint.py restore -f 2011-05-23.fp 77 $ ./utils/fingerprint/fingerprint.py restore -l builder.log 78 78 }}} 79 79
