<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/guix/git-download.scm, branch master</title>
<subtitle>Personal branch of https://git.savannah.gnu.org/cgit/guix.git/ for implementing 'guix deploy'.
</subtitle>
<id>https://git.jakob.space/guix.git/atom?h=master</id>
<link rel='self' href='https://git.jakob.space/guix.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/'/>
<updated>2019-06-06T18:35:54Z</updated>
<entry>
<title>guix: git-download: Remove explicit import.</title>
<updated>2019-06-06T18:35:54Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-06-05T18:56:14Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=5d9fe4311af7444ee02617c5d76d668a52d453d8'/>
<id>urn:sha1:5d9fe4311af7444ee02617c5d76d668a52d453d8</id>
<content type='text'>
With guile-git version 0.2, repository-working-directory is no
longer private.

* guix/git-download.scm (git-file-list): Refer to public
repository-working-directory.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>git-download: Download from Software Heritage as a last resort.</title>
<updated>2018-11-26T10:10:20Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludovic.courtes@inria.fr</email>
</author>
<published>2018-11-19T14:46:50Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=608d3dca89d73fe7260e97a284a8aeea756a3e11'/>
<id>urn:sha1:608d3dca89d73fe7260e97a284a8aeea756a3e11</id>
<content type='text'>
* guix/git-download.scm (git-fetch)[inputs]: Add gzip and tar when
'git-reference-recursive?' is false.
[guile-json, gnutls]: New variables.
[modules]: Add (guix swh).
[build]: Wrap in 'with-extensions'.  Add call to 'swh-download'.
</content>
</entry>
<entry>
<title>git-download: Use 'git-minimal' instead of 'git'.</title>
<updated>2018-11-26T10:10:20Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2018-11-26T10:06:21Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=3b5829bbcb7ea3a76a4d2393f0b2cbfb6d1a5e37'/>
<id>urn:sha1:3b5829bbcb7ea3a76a4d2393f0b2cbfb6d1a5e37</id>
<content type='text'>
* guix/git-download.scm (git-package): Refer to 'git-minimal'.
</content>
</entry>
<entry>
<title>git-download: Don't assume the working directory is the parent of ".git".</title>
<updated>2018-09-25T22:33:00Z</updated>
<author>
<name>Marius Bakke</name>
<email>mbakke@fastmail.com</email>
</author>
<published>2018-09-15T09:53:40Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=280fc8351230a8fea086d9bbce919ba8395f312c'/>
<id>urn:sha1:280fc8351230a8fea086d9bbce919ba8395f312c</id>
<content type='text'>
This makes it do the right thing w.r.t. git worktrees.

* guix/git-download.scm (git-file-list): Use REPOSITORY-WORKING-DIRECTORY to
locate checkout.  Rename from "top" to "workdir".
</content>
</entry>
<entry>
<title>git-download: 'git-predicate' returns #f on Git errors.</title>
<updated>2018-09-14T09:23:08Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2018-09-14T09:11:54Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=13512e1b8f63b4d8fcb188fac992aa390149fe65'/>
<id>urn:sha1:13512e1b8f63b4d8fcb188fac992aa390149fe65</id>
<content type='text'>
Fixes a regression introduced in
aed0a594058a59bc3bb1d2686391dc0e8a181b1f whereby 'git-predicate' would
throw to 'git-error instead of returning #f as the docstring says.

* guix/git-download.scm (git-predicate): Return #f upon 'git-error'.
</content>
</entry>
<entry>
<title>git-download: Rewrite 'git-predicate' using Guile-Git.</title>
<updated>2018-09-12T22:20:42Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2018-09-12T21:56:34Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=aed0a594058a59bc3bb1d2686391dc0e8a181b1f'/>
<id>urn:sha1:aed0a594058a59bc3bb1d2686391dc0e8a181b1f</id>
<content type='text'>
Fixes &lt;https://bugs.gnu.org/27925&gt;.

* guix/git-download.scm (files-&gt;directory-tree)
(directory-in-tree?): Remove.
(git-file-list): New procedures.
(git-predicate): Use it instead of opening a pipe to 'git'.  Remove
directory tree hack and rely exclusively on inode/device numbers.
</content>
</entry>
<entry>
<title>git-download: Fix recursive checkouts.</title>
<updated>2018-03-19T01:00:44Z</updated>
<author>
<name>Eric Bavier</name>
<email>bavier@member.fsf.org</email>
</author>
<published>2018-03-16T04:25:01Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=be95bcf0887dc7d90177fda20cab56c6e248dcfa'/>
<id>urn:sha1:be95bcf0887dc7d90177fda20cab56c6e248dcfa</id>
<content type='text'>
* guix/git-download.scm (git-fetch)&lt;build&gt;: Fix match on INPUTS, which may
contain package outputs.
</content>
</entry>
<entry>
<title>download: Download a nar when a VCS checkout fails.</title>
<updated>2017-10-19T21:21:49Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludovic.courtes@inria.fr</email>
</author>
<published>2017-10-17T08:34:03Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=37ce440dcffa9ff4f5401bacbc9619bd8ea561c1'/>
<id>urn:sha1:37ce440dcffa9ff4f5401bacbc9619bd8ea561c1</id>
<content type='text'>
Fixes &lt;https://bugs.gnu.org/28709&gt;.

* guix/build/download-nar.scm: New file.
* Makefile.am (MODULES): Add it.
* guix/cvs-download.scm (cvs-fetch)[zlib, config.scm, modules]: New
variables.
[build]: Use MODULES.  Add call to 'download-nar'.
* guix/git-download.scm (git-fetch): Likewise.
* guix/hg-download.scm (hg-fetch): Likewise.
</content>
</entry>
<entry>
<title>git-download: Remove call to 'canonicalize-path'.</title>
<updated>2017-07-30T15:22:13Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2017-07-30T15:19:42Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=228a3982df157847554abc9d0831d687264d8ebd'/>
<id>urn:sha1:228a3982df157847554abc9d0831d687264d8ebd</id>
<content type='text'>
* guix/git-download.scm (git-predicate): Remove call to
'canonicalize-path' since this could lead to discrepancies.  For
instance it broke 'make update-guix-package' since it passes a
non-canonical directory name.
</content>
</entry>
<entry>
<title>git-download: Speed up 'git-predicate'.</title>
<updated>2017-07-25T21:24:16Z</updated>
<author>
<name>Christopher Baines</name>
<email>mail@cbaines.net</email>
</author>
<published>2017-06-19T07:14:43Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=f135b4ae8397d2c501150d3ead3e0603e770ce3f'/>
<id>urn:sha1:f135b4ae8397d2c501150d3ead3e0603e770ce3f</id>
<content type='text'>
Adjust 'git-predicate' to use data structures that perform better when used
with git repositories with a large number of files.

Previously when matching either a regular file or directory, 'git-predicate'
would search a list with a length equal to the number of files in the
repository. As a search operation happens for roughly every file in the
repository, this meant that the time taken to use 'git-predicate' to traverse
all the files in a repository was roughly exponential with respect to the
number of files in the repository.

Now, for matching regular files or symlinks, 'git-predicate' uses a vhash
using the inode value as the key. This should perform roughly in constant
amount of time, instead of linear with respect to the number of files in the
repository.

For matching directories, 'git-predicate' now uses a tree structure stored in
association lists. To check if a directory is in the tree, the tree is
traversed from the root. The time complexity of this depends on the shape of
the tree, but it should be an improvement on searching through the list of all
files.

* guix/git-download.scm (files-&gt;directory-tree, directory-in-tree?): New
procedures.
(git-predicate): Compute DIRECTORY-TREE.  Turn INODES into a vhash.
Adjust body of lambda accordingly.

Co-authored-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
</feed>
