summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-07-01 15:39:30 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-07-01 15:39:30 -0400
commit6ba866ca738d6a63858916f84979cfd346bcb403 (patch)
treedeb3ff71df984965029813d647442664b012f9ed
parent3efba481b50ad8de6efe5869db90ac69f5c022a9 (diff)
updates for web remote and removing URL backend
-rw-r--r--debian/control1
-rw-r--r--doc/backends.mdwn4
-rw-r--r--doc/cheatsheet.mdwn1
-rw-r--r--doc/git-annex.mdwn14
-rw-r--r--doc/install.mdwn1
-rw-r--r--doc/walkthrough/using_the_SHA1_backend.mdwn2
-rw-r--r--doc/walkthrough/using_the_URL_backend.mdwn24
-rw-r--r--git-annex.cabal4
8 files changed, 9 insertions, 42 deletions
diff --git a/debian/control b/debian/control
index 8c533af11..07a9e4bbb 100644
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@ Build-Depends:
libghc-sha-dev,
libghc-dataenc-dev,
libghc-utf8-string-dev,
+ libghc-curl-dev,
libghc-hs3-dev (>= 0.5.6),
libghc-testpack-dev [any-i386 any-amd64],
ikiwiki,
diff --git a/doc/backends.mdwn b/doc/backends.mdwn
index 4290da33b..03502eaa1 100644
--- a/doc/backends.mdwn
+++ b/doc/backends.mdwn
@@ -27,10 +27,6 @@ these backends.
part of the key. Useful for archival tasks where the filename extension
contains metadata that should be preserved.
-These backends store file contents in other key/value stores.
-
-* `URL` -- This backend downloads the file's content from an external URL.
-
The `annex.backends` git-config setting can be used to list the backends
git-annex should use. The first one listed will be used by default when
new files are added.
diff --git a/doc/cheatsheet.mdwn b/doc/cheatsheet.mdwn
index 3f5960972..e88efc0ab 100644
--- a/doc/cheatsheet.mdwn
+++ b/doc/cheatsheet.mdwn
@@ -5,7 +5,6 @@ A suppliment to the [[walkthrough]].
[[!inline feeds=no show=0 template=walkthrough pagenames="""
walkthrough/using_Amazon_S3
walkthrough/using_bup
- walkthrough/using_the_URL_backend
walkthrough/using_the_SHA1_backend
walkthrough/migrating_data_to_a_new_backend
walkthrough/untrusted_repositories
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index a5ddf3172..92fd82454 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -277,13 +277,8 @@ Many git-annex commands will stage changes for later `git commit` by you.
* fromkey file
- This can be used to manually set up a file to link to a specified key
- in the key-value backend. How you determine an existing key in the backend
- varies. For the URL backend, the key is based on an URL to the content.
-
- Example:
-
- git annex fromkey --key=URL--http://www.archive.org/somefile somefile
+ This plumbing-level command can be used to manually set up a file
+ to link to a specified key in the key-value backend.
* dropkey [key ...]
@@ -299,8 +294,8 @@ Many git-annex commands will stage changes for later `git commit` by you.
* setkey file
- This plumbing-level command sets the annexed data for a key to the content of
- the specified file, and then removes the file.
+ This plumbing-level command sets the annexed data for a key to the
+ content of the specified file, and then removes the file.
Example:
@@ -402,7 +397,6 @@ Here are all the supported configuration settings.
Space-separated list of names of the key-value backends to use.
The first listed is used to store new files by default.
- (default: "WORM SHA1 URL")
* `remote.<name>.annex-cost`
diff --git a/doc/install.mdwn b/doc/install.mdwn
index 1a83c2fd6..8a5e8d5ec 100644
--- a/doc/install.mdwn
+++ b/doc/install.mdwn
@@ -19,6 +19,7 @@ To build and use git-annex, you will need:
* [dataenc](http://hackage.haskell.org/package/dataenc)
* [TestPack](http://hackage.haskell.org/cgi-bin/hackage-scripts/package/testpack)
* [QuickCheck 2](http://hackage.haskell.org/package/QuickCheck)
+ * [curl](http://hackage.haskell.org/package/curl)
* [hS3](http://hackage.haskell.org/package/hS3) (optional, but recommended)
* Shell commands
* [git](http://git-scm.com/)
diff --git a/doc/walkthrough/using_the_SHA1_backend.mdwn b/doc/walkthrough/using_the_SHA1_backend.mdwn
index c04729e2c..70dc2ef75 100644
--- a/doc/walkthrough/using_the_SHA1_backend.mdwn
+++ b/doc/walkthrough/using_the_SHA1_backend.mdwn
@@ -1,4 +1,4 @@
-Another handy alternative to the default [[backend|backends]] is the
+A handy alternative to the default [[backend|backends]] is the
SHA1 backend. This backend provides more git-style assurance that your data
has not been damaged. And the checksum means that when you add the same
content to the annex twice, only one copy need be stored in the backend.
diff --git a/doc/walkthrough/using_the_URL_backend.mdwn b/doc/walkthrough/using_the_URL_backend.mdwn
deleted file mode 100644
index 50da4dad8..000000000
--- a/doc/walkthrough/using_the_URL_backend.mdwn
+++ /dev/null
@@ -1,24 +0,0 @@
-git-annex has multiple key-value [[backends]]. So far you have been using
-the default, WORM (Write Once, Read Many) backend.
-
-Another handy backend is the URL backend, which can fetch file's content
-from remote URLs. Here's how to set up some files in your repository
-that use this backend:
-
- # git annex fromkey --key=URL--http://www.archive.org/somefile somefile
- fromkey somefile ok
- # git commit -m "added a file from the Internet Archive"
-
-Now you if you ask git-annex to get that file, it will download it,
-and cache it locally.
-
- # git annex get somefile
- get somefile (downloading)
- #########################################################################100.0%
- ok
-
-You can always drop files downloaded by the URL backend. It is assumed
-that the URL is stable; no local backup is kept.
-
- # git annex drop somefile
- drop somefile (ok)
diff --git a/git-annex.cabal b/git-annex.cabal
index a4b8aef99..fab2c71b9 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -29,14 +29,14 @@ Executable git-annex
Main-Is: git-annex.hs
Build-Depends: haskell98, MissingH, hslogger, directory, filepath,
unix, containers, utf8-string, network, mtl, bytestring, old-locale, time,
- pcre-light, extensible-exceptions, dataenc, SHA, process, hS3,
+ pcre-light, extensible-exceptions, dataenc, SHA, process, hS3, curl,
base < 5
Executable git-annex-shell
Main-Is: git-annex-shell.hs
Build-Depends: haskell98, MissingH, hslogger, directory, filepath,
unix, containers, utf8-string, network, mtl, bytestring, old-locale, time,
- pcre-light, extensible-exceptions, dataenc, SHA, process, hS3,
+ pcre-light, extensible-exceptions, dataenc, SHA, process, hS3, curl,
base < 5
Executable git-union-merge