about summary refs log tree commit diff
path: root/src/libstore/references.cc
AgeCommit message (Collapse)AuthorFilesLines
2017-07-30 Replace Unicode quotes in user-facing strings by ASCIIJörg Thalheim1-2/+2
Relevant RFC: NixOS/rfcs#4 $ ag -l | xargs sed -i -e "/\"/s/’/'/g;/\"/s/‘/'/g"
2016-11-26 Revert "Get rid of unicode quotes (#1140)"Eelco Dolstra1-2/+2
This reverts commit f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7. There really is no need for such a massive change...
2016-11-25 Get rid of unicode quotes (#1140)Guillaume Maudoux1-2/+2
2015-07-17 OCD: foreach -> C++11 ranged forEelco Dolstra1-10/+10
2014-08-20 Use proper quotes everywhereEelco Dolstra1-2/+2
2012-02-09 Use data() instead of c_str() where appropriateEelco Dolstra1-1/+1
2011-12-15 * Refactoring: move sink/source buffering into separate classes.Eelco Dolstra1-2/+2
* Buffer the HashSink. This speeds up hashing a bit because it prevents lots of calls to the hash update functions (e.g. nix-hash went from 9.3s to 8.7s of user time on the closure of my /var/run/current-system).
2010-11-16 * Store the size of a store path in the database (to be precise, theEelco Dolstra1-1/+1
size of the NAR serialisation of the path, i.e., `nix-store --dump PATH'). This is useful for Hydra.
2009-03-30 (no commit message)Eelco Dolstra1-0/+1
2009-03-28 * Scan for references and compute the SHA-256 hash of the output inEelco Dolstra1-76/+39
one pass. This halves the amount of I/O.
2008-05-21 * GCC 4.3.0 (Fedora 9) compatibility fixes. Reported by Gour andEelco Dolstra1-0/+2
Armijn Hemel.
2006-09-22 * Use a bounded amount of memory in scanForReferences() by not readingEelco Dolstra1-9/+26
regular files into memory all at once.
2006-09-22 * Don't allocate the buffer twice.Eelco Dolstra1-7/+9
2006-09-22 * Don't allocate more than SIZE_MAX bytes.Eelco Dolstra1-0/+7
2006-09-04 * Use a proper namespace.Eelco Dolstra1-4/+11
* Optimise header file usage a bit. * Compile the parser as C++.
2006-05-11 * 64-bit compatibility fixes (for problems revealed by building on an AthlonEelco Dolstra1-1/+1
64 running 64-bit SUSE). A patched ATerm library is required to run Nix succesfully.
2006-03-01 * Wrong delete. Thanks valgrind.Eelco Dolstra1-1/+1
2005-11-16 * Did something useful while waiting at IAD: reference scanning is nowEelco Dolstra1-25/+43
much faster.
2005-02-11 * Input sources should be in the set of all referenceable paths too.Eelco Dolstra1-2/+2
2005-01-14 * Shorten SHA-256 hashes used in store path name generation to 160Eelco Dolstra1-2/+6
bits, then encode them in a radix-32 representation (using digits and letters except e, o, u, and t). This produces store paths like /nix/store/4i0zb0z7f88mwghjirkz702a71dcfivn-aterm-2.3.1. The nice thing about this is that the hash part of the file name is still 32 characters, as before with MD5. (Of course, shortening SHA-256 to 160 bits makes it no better than SHA-160 in theory, but hopefully it's a bit more resistant to attacks; it's certainly a lot slower.)
2004-01-15 * Catch SIGINT to terminate cleanly when the user tries to interruptEelco Dolstra1-0/+3
Nix. This is to prevent Berkeley DB from becoming wedged. Unfortunately it is not possible to throw C++ exceptions from a signal handler. In fact, you can't do much of anything except change variables of type `volatile sig_atomic_t'. So we set an interrupt flag in the signal handler and check it at various strategic locations in the code (by calling checkInterrupt()). Since this is unlikely to cover all cases (e.g., (semi-)infinite loops), sometimes SIGTERM may now be required to kill Nix.
2004-01-05 * Implemented Eelco V.'s `nix-env -I' command to specify the defaultEelco Dolstra1-6/+2
path of the Nix expression to be used with the import, upgrade, and query commands. For instance, $ nix-env -I ~/nixpkgs/pkgs/system/i686-linux.nix $ nix-env --query --available [aka -qa] sylpheed-0.9.7 bison-1.875 pango-1.2.5 subversion-0.35.1 ... $ nix-env -i sylpheed $ nix-env -u subversion There can be only one default at a time. * If the path to a Nix expression is a symlink, follow the symlink prior to resolving relative path references in the expression.
2003-11-19 * nix-env: a tool to manage user environments.Eelco Dolstra1-8/+4
* Replace all directory reading code by a generic readDirectory() function.
2003-11-18 * libnix -> libstore.Eelco Dolstra1-0/+106