Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

WIP: HashFromNode and VerifyDepTree #959

Merged
merged 36 commits into from
Aug 17, 2017
Merged

WIP: HashFromNode and VerifyDepTree #959

merged 36 commits into from
Aug 17, 2017

Commits on Aug 5, 2017

  1. HashFromNode and VerifyDepTree

    * HashFromNode returns a deterministic cryptographic digest for a directory tree
    * VerifyDepTree verifies dep tree according to expected digests
    karrick committed Aug 5, 2017
    Configuration menu
    Copy the full SHA
    84b3567 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ae2c30e View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2017

  1. Configuration menu
    Copy the full SHA
    1a76ff6 View commit details
    Browse the repository at this point in the history
  2. writes NULL byte after writing to hash

    * prevents many accidental hash collisions
    karrick committed Aug 7, 2017
    Configuration menu
    Copy the full SHA
    66fe4eb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5c97180 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    546d65f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f1d5d85 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2017

  1. Configuration menu
    Copy the full SHA
    b6d16e1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9a7209d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    581e51a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a298630 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f0b532d View commit details
    Browse the repository at this point in the history
  6. TestScaffolding prints testdata_digest directory

    * trying to figure out condition of the testdata_digest directory on the build box
    karrick committed Aug 8, 2017
    Configuration menu
    Copy the full SHA
    911fda4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ecbbf03 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0f7b419 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    443fcd3 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2017

  1. Configuration menu
    Copy the full SHA
    8575040 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    541b3f8 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2017

  1. no longer dumps status output during testing

    * some more edge test cases added
    karrick committed Aug 12, 2017
    Configuration menu
    Copy the full SHA
    0a01713 View commit details
    Browse the repository at this point in the history
  2. two loop solution

    Remove any CRLF sequences in buf, using `bytes.Index` because that
    takes advantage of machine opcodes that search for byte patterns on
    many architectures. This operation is done in two parts: find and
    record the CRLF sequence positions, then loop through and copy bytes
    to eliminate the CR bytes.
    karrick committed Aug 12, 2017
    Configuration menu
    Copy the full SHA
    8a0c365 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cba6ebe View commit details
    Browse the repository at this point in the history
  4. typos

    karrick committed Aug 12, 2017
    Configuration menu
    Copy the full SHA
    59a1046 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2017

  1. Configuration menu
    Copy the full SHA
    c5be3d8 View commit details
    Browse the repository at this point in the history
  2. DigestFromPathname -> DigestFromDirectory

    * Only works with directories; no longer with files.
    
    * Takes a single argument, that of the directory to hash.
    
    * Hashes existance and type of all file system nodes in the directory
      that it finds.
    
    * When hashing file system node names, it no longer includes the
      prefix matching the directory name parameter.
    karrick committed Aug 13, 2017
    Configuration menu
    Copy the full SHA
    87959d0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    29b1709 View commit details
    Browse the repository at this point in the history
  4. comments updated

    karrick committed Aug 13, 2017
    Configuration menu
    Copy the full SHA
    17e7c9d View commit details
    Browse the repository at this point in the history
  5. code cleanup and documentation updates

    * In line with the original document describing hungarian notation,
      all file system path variable names have been prefixed with either
      `slash` or `os` to differentiate whether the variable holds a slash
      delimited pathname or a pathname delimited by an os-specific
      pathname delimiter. This is to make it much easier to visually see
      whether we are using the wrong pathname "type" than desired.
    karrick committed Aug 13, 2017
    Configuration menu
    Copy the full SHA
    0df696c View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2017

  1. VerifyDepTree reports all NotInLock file system nodes

    * device files, named pipes, sockets found in a vendor root tree are
      also reported, and will result in a status of `NotInLock`, because
      those node types are generally not in source control.
    karrick committed Aug 14, 2017
    Configuration menu
    Copy the full SHA
    f02d479 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2017

  1. additional test cases

    karrick committed Aug 15, 2017
    Configuration menu
    Copy the full SHA
    e9ff6b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fbe5d64 View commit details
    Browse the repository at this point in the history
  3. DirWalk

    karrick committed Aug 15, 2017
    Configuration menu
    Copy the full SHA
    48cd664 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    845c95e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9a883e8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a252c36 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    83ad7c6 View commit details
    Browse the repository at this point in the history
  8. removed constant no longer being used

    * thanks megacheck :)
    karrick committed Aug 15, 2017
    Configuration menu
    Copy the full SHA
    a9bb8cd View commit details
    Browse the repository at this point in the history