Changes between Version 63 and Version 64 of Building/GettingTheSources


Ignore:
Timestamp:
Jun 24, 2011 3:40:33 PM (4 years ago)
Author:
rrnewton
Comment:

I noticed the fingerprint.py path changed in the repository and so updating this page to be consistent.

Legend:

Unmodified
Added
Removed
Modified
  • Building/GettingTheSources

    v63 v64  
    5858The 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).
    5959
    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.
     60As 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.
    6161
    6262A 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.
     
    6565
    6666{{{
    67 $ ./utils/fingerprint.py create
    68 $ ./utils/fingerprint.py create -l builder.log
     67$ ./utils/fingerprint/fingerprint.py create
     68$ ./utils/fingerprint/fingerprint.py create -l builder.log
    6969}}}
    7070
     
    7474
    7575{{{
    76 $ ./utils/fingerprint.py restore -f 2011-05-23.fp
    77 $ ./utils/fingerprint.py restore -l builder.log
     76$ ./utils/fingerprint/fingerprint.py restore -f 2011-05-23.fp
     77$ ./utils/fingerprint/fingerprint.py restore -l builder.log
    7878}}}
    7979