Index: www/blockchain.md ================================================================== --- www/blockchain.md +++ www/blockchain.md @@ -1,32 +1,469 @@ -# Fossil As Blockchain - -Fossil is a version control system built around blockchain. - -Wikipedia defines "blockchain" as - -> - "a growing list of records, called blocks, which are linked using - cryptography. Each block contains a cryptographic hash of the previous - block, a timestamp, and transaction data..." [(1)][] - - -By that definition, Fossil is clearly an implementation of blockchain. -The blocks are ["manifests" artifacts](./fileformat.wiki#manifest). -Each manifest has a SHA1 or SHA3 hash of its parent or parents, -a timestamp, and other transactional data. The repository grows by -adding new manifests onto the list. - -Some people have come to associate blockchain with cryptocurrency, however, -and since Fossil has nothing to do with cryptocurrency, the claim that -Fossil is built around blockchain is met with skepticism. The key thing -to note here is that cryptocurrency implementations like BitCoin are -built around blockchain, but they are not synonymous with blockchain. -Blockchain is a much broader concept. Blockchain is a mechanism for -constructing a distributed ledger of transactions. -Yes, you can use a distributed -ledger to implement a cryptocurrency, but you can also use a distributed -ledger to implement a version control system, and probably many other kinds -of applications as well. Blockchain is a much broader idea than -cryptocurrency. - -[(1)]: https://en.wikipedia.org/wiki/Blockchain +# Is Fossil A Blockchain? + +The Fossil version control system shares a lot of similarities with +other blockchain based technologies, but it also differs from the more common +sorts of blockchains. This document will discuss the term’s +applicability, so you can decide whether applying the term to Fossil +makes sense to you. + + +## The Dictionary Argument + +The [Wikipedia definition of "blockchain"][bcwp] begins: + +> + "A blockchain…is a growing list of records, called blocks, which are linked using + cryptography. Each block contains a cryptographic hash of the previous + block, a timestamp, and transaction data (generally represented as a Merkle tree)." + + +By that partial definition, Fossil is indeed a blockchain. The blocks +are Fossil’s ["manifest" artifacts](./fileformat.wiki#manifest). Each +manifest has a cryptographically-strong [SHA-1] or [SHA-3] hash linking it to +one or more “parent” blocks. The manifest also contains a timestamp and +the transactional data needed to express a commit to the repository. If +you traverse the Fossil repository from the tips of its [DAG] to the +root by following the parent hashes in each manifest, you will then have +a Merkle tree. Point-for-point, Fossil follows that definition. + +Every change in Fossil starts by adding one or more manifests to +the repository, extending this tree. + +[bcwp]: https://en.wikipedia.org/wiki/Blockchain +[DAG]: https://en.wikipedia.org/wiki/Directed_acyclic_graph +[SHA-1]: https://en.wikipedia.org/wiki/SHA-1 +[SHA-3]: https://en.wikipedia.org/wiki/SHA-3 + + + + +## Cryptocurrency + +Because blockchain technology was first popularized as Bitcoin, many +people associate the term with cryptocurrency. Fossil has nothing to do +with cryptocurrency, so a claim that “Fossil is a blockchain” may fail +to communicate the speaker’s concepts clearly due to conflation with +cryptocurrency. + +Cryptocurrency has several features and requirements that Fossil doesn’t +provide, either because it doesn’t need them or because we haven’t +gotten around to creating the feature. Whether these are essential to +the definition of “blockchain” and thus disqualify Fossil as a blockchain +is for you to decide. + +Cryptocurrencies must prevent three separate types of fraud to be useful: + +* **Type 1** is modification of existing currency. To draw an analogy + to paper money, we wish to prevent someone from using green and + black markers to draw extra zeroes on a US $10 bill so that it + claims to be a $100 bill. Cryptocurrencies apply digital signatures + to each block so that a given block of currency’s face value cannot + be changed after it is created. The [proof-of-work][pow] aspect + prevents the creator from setting its initial value fraudulently. + +* **Type 2** is making new counterfeit $10 bills that look + sufficiently like the original to pass in commerce. Cryptocurrencies + chain blocks together and establish a sufficiently hard work problem + to create new currency that Type 2 frauds are impractical short of + doing the actual mining needed to produce legitimate cryptocurrency. + +* **Type 3** is double-spending existing legitimate cryptocurrency. + There is no analogy in paper money due to its physical form; it is a + problem unique to digital currency due to its infinitely-copyable + nature. Cryptocurrencies prevent Type 3 frauds by making the + *prior* owner of a block sign it over to the new owner. To avoid an + O(n²) auditing problem as a result, cryptocurrencies also use a + chain of hashes to make checking for double-spending quick and easy. + +How does all of this compare to Fossil? + +1. **Signatures.** Cryptocurrencies use a chain + of [digital signatures][dsig] to prevent Type 1 and Type 3 frauds. This + chain forms an additional link between the blocks, separate from the + hash chain that applies an ordering and lookup scheme to the blocks. + [_Blockchain: Simple Explanation_][bse] explains this “hash chain” + vs. “block chain” distinction in more detail. + + Fossil has [a disabled-by-default feature][cs] to call out to an + external copy of [PGP] or [GPG] to sign commit manifests before + inserting them into the repository. You may wish to couple that with + a server-side [after-receive hook][arh] to reject unsigned commits. + + Although there are several distinctions you can draw between the way + Fossil’s commit signing scheme works and the way block signing works + in cryptocurrencies, only one is of material interest for our + purposes here: Fossil commit signatures apply only to a single + commit. Fossil does not sign one commit over to the next “owner” of + that commit in the way that a blockchain-based cryptocurrency must + when transferring currency from one user to another, beacuse there + is no useful analog to the double-spending problem in Fossil. The + closest you can come to this is double-insert of commits into the + blockchain, which we’ll address shortly. + + What Fossil commit signatures actually do is provide in-tree forgery + prevention, both Type 1 and Type 2. You cannot modify existing + commits (Type 1 forgery) because you do not have the original + committer’s private signing key, and you cannot forge new commits + attesting to come from some other trusted committer (Type 2) because + you don’t have any of their private signing keys, either. + Cyrptocurrencies also use the work problem to prevent Type 2 + forgeries, but the application of that to Fossil is a matter we get + to [later](#work). + + If Fossil signatures prevent Type 1 and Type 2 frauds, why then are + they not enabled by default? Because they are defense-in-depth + measures, not the minimum sufficient measures needed to prevent + repository fraud in Fossil. Fossil provides its primary protections + through other means. + + Although you have complete control over the contents of your local + Fossil repository clone, you cannot perform Type 1 forgery on its + contents short of executing a [preimage attack][prei] on the hash + algorthm. ([SHA3-256][SHA-3] by default in the current version of + Fossil.) Even if you could, Fossil’s sync protocol will prevent the + modification from being pushed into another repository: the remote + Fossil instance says, “I’ve already got that one, thanks,” and + ignores the push. Thus, short of breaking into the remote server + and modifying the repository in place, you couldn’t even make use of + a preimage attack if you had that power. This is an attack on the + server itself, not on Fossil’s data structures, so while it is + useful to think through this problem, it is not helpful to answering + our questions here. + + The Fossil sync protocol also prevents the closest analog to Type 3 + frauds in Fossil: copying a commit manifest in your local repo clone + won’t result in a double-commit on sync. + + In the absence of digital signatures, Fossil’s [RBAC system][caps] + restricts Type 2 forgery to trusted committers. Thus once again + we’re reduced to an infosec problem, not a data structure design + question. (Inversely, enabling commit clearsigning is a good idea + if you have committers on your repo whom you don’t trust not to + commit Type 2 frauds. But let us be clear: your choice of setting + does not answer the question of whether Fossil is a blockchain.) + + If you’re wondering why Fossil’s current commit signing feature is + not enabled by default and why it doesn’t verify signatures on + commits, it is because Fossil is not itself a [PKI], and there is no + way for regular users of Fossil to link it to a PKI, since doing so + would likely result in an unwanted [PII] disclosure. There is no + email address in a Fossil commit manifest that you could use to + query one of the public PGP keyservers, for example. It therefore + becomes a local policy matter as to whether you even *want* to have + signatures, because they’re not without their downsides. + +2. **Work Contests.** Cryptocurrencies prevent forgery + by setting up some sort of contest that ensures that new coins can come + into existence only by doing some difficult work task. This “mining” + activity results in a coin that took considerable work to create, + which thus has economic value by being a) difficult to re-create, + and b) resistant to [debasement][dboc]. + + Fossil repositories are most often used to store the work product of + individuals, rather than cryptocoin mining machines. There is + generally no contest in trying to produce the most commits. There + may be an implicit contest to produce the “best” commits, but that + is a matter of project management, not something that can be + automatically mediated through objective measures. + + Incentives to commit to the repository come from outside of Fossil; + they are not inherent to its nature, as with cryptocurrencies. + Moreover, there is no useful sense in which we could say that one + commit “re-creates” another. Commits are generally products of + individual human intellect, thus necessarily unique in all but + trivial cases. This is foundational to copyright law. + +3. **Longest Chain Rule.** Cryptocurrencies generally + need some way to distinguish which blocks are legitimate and which + not. They do this in part by identifying the linear chain with the + greatest cumulative [work time](#work) as the legitimate chain. All + blocks not on that linear chain are considered “orphans” and are + ignored by the cryptocurrency software. + + It inverse is sometimes called the “51% attack” because a single + actor would have to do slightly more work than the entire rest of + the community using a given cryptocurrency in order for their fork + of the currency to be considered the legitimate fork. This argument + soothes concerns that a single bad actor could take over the + network. + + The closest we can come to that notion in Fossil is the default + “trunk” branch, but there’s nothing in Fossil that delegitimizes + other branches just because they’re shorter, nor is there any way in + Fossil to score the amount of work that went into a commit. Indeed, + [forks and branches][fb] are *valuable and desirable* things in + Fossil. + +This much is certain: Fossil is definitely not a cryptocurrency. Whether +this makes it “not a blockchain” is a subjective matter. + +[arh]: ./hooks.md +[bse]: https://www.researchgate.net/publication/311572122_What_is_Blockchain_a_Gentle_Introduction +[caps]: ./caps/ +[cs]: /help?cmd=clearsign +[dboc]: https://en.wikipedia.org/wiki/Debasement +[dsig]: https://en.wikipedia.org/wiki/Digital_signature +[fb]: ./branching.wiki +[GPG]: https://gnupg.org/ +[PGP]: https://www.openpgp.org/ +[PII]: https://en.wikipedia.org/wiki/Personal_data +[PKI]: https://en.wikipedia.org/wiki/Public_key_infrastructure +[pow]: https://en.wikipedia.org/wiki/Proof_of_work +[prei]: https://en.wikipedia.org/wiki/Preimage_attack + + + + +## Distributed Ledgers + +Cryptocurrencies are an instance of [distributed ledger technology][dlt]. If +we can convince ourselves that Fossil is also a distributed +ledger, then we might think of Fossil as a peer technology, +having at least some qualifications toward being considered a blockchain. + +A key tenet of DLT is that records be unmodifiable after they’re +committed to the ledger, which matches quite well with Fossil’s design +and everyday use cases. Fossil puts up multiple barriers to prevent +modification of existing records and injection of incorrect records. + +Yet, Fossil also has [purge] and [shunning][shun]. Doesn’t that mean +Fossil cannot be a distributed ledger? + +These features only remove existing commits from the repository. If you want a +currency analogy, they are ways to burn a paper bill or to melt a [fiat +coin][fc] down to slag. In a cryptocurrency, you can erase your “wallet” +file, effectively destroying money in a similar way. These features +do not permit forgery of either type described above: you can’t use them +to change the value of existing commits (Type 1) or add new commits to +the repository (Type 2). + +What if we removed those features from Fossil, creating an append-only +Fossil variant? Is it a DLT then? Arguably still not, because [today’s Fossil +is an AP-mode system][ctap] in the [CAP theorem][cap] sense, which means +there can be no guaranteed consensus on the content of the ledger at any +given time. If you had an AP-mode accounts receivable system, it could +have different bottom-line totals at different sites, because you’ve +cast away “C” to get AP-mode operation. + +Because of this, you could still not guarantee that the command +“`fossil info tip`” gives the same result everywhere. A CA or CP-mode Fossil +variant would guarantee that everyone got the same result. (Everyone not +partitioned away from the majority of the network at any rate, in the CP +case.) + +What are the prospects for CA-mode or CP-mode Fossil? [We don’t want +CA-mode Fossil][ctca], but [CP-mode could be useful][ctcp]. Until the latter +exists, this author believes Fossil is not a distributed ledger in a +technologically defensible sense. + +The most common technologies answering to the label “blockchain” are all +DLTs, so if Fossil is not a DLT, then it is not a blockchain in that +sense. + +[ctap]: ./cap-theorem.md#ap +[ctca]: ./cap-theorem.md#ca +[ctcp]: ./cap-theorem.md#cp +[cap]: https://en.wikipedia.org/wiki/CAP_theorem +[dlt]: https://en.wikipedia.org/wiki/Distributed_ledger +[DVCS]: https://en.wikipedia.org/wiki/Distributed_version_control +[fc]: https://en.wikipedia.org/wiki/Fiat_money +[purge]: /help?cmd=purge +[shun]: ./shunning.wiki + + + +## Distributed Partial Consensus + +If we can’t get DLT, can we at least get some kind of distributed +consensus at the level of individual Fossil’s commits? + +Many blockchain based technologies have this property: given some +element of the blockchain, you can make certain proofs that it either is +a legitimate part of the whole blockchain, or it is not. + +Unfortunately, this author doesn’t see a way to do that with Fossil. +Given only one “block” in Fossil’s putative “blockchain” — a commit, in +Fossil terminology — all you can prove is whether it is internally +consistent, that it is not corrupt. That then points you at the parent(s) of that +commit, which you can repeat the exercise on, back to the root of the +DAG. This is what the enabled-by-default [`repo-cksum` setting][rcks] +does. + +If cryptocurrencies worked this way, you wouldn’t be able to prove that +a given cryptocoin was legitimate without repeating the proof-of-work +calculations for the entire cryptocurrency scheme! Instead, you only +need to check a certain number of signatures and proofs-of-work in order +to be reasonably certain that you are looking at a legitimate section of +the whole blockchain. + +What would it even mean to prove that a given Fossil commit “*belongs*” +to the repository you’ve extracted it from? For a software project, +isn’t that tantamount to automatic code review, where the server would +be able to reliably accept or reject a commit based solely on its +content? That sounds nice, but this author believes we’ll need to invent +[AGI] first. + +A better method to provide distributed consensus for Fossil would be to +rely on the *natural* intelligence of its users: that is, distributed +commit signing, so that a commit is accepted into the blockchain only +once some number of users countersign it. This amounts to a code review +feature, which Fossil doesn’t currently have. + +Solving that problem basically requires solving the [PKI] problem first, +since you can’t verify the proofs of these signatures if you can’t first +prove that the provided signatures belong to people you trust. This is a +notoriously hard problem in its own right. + +A future version of Fossil could instead provide [consensus in the CAP +sense][ctcp]. For instance, you could say that if a quorum of servers +all have a given commit, it “belongs.” Fossil’s strong hashing tech +would mean that querying whether a given commit is part of the +“blockchain” would be as simple as going down the list of servers and +sending each an HTTP GET `/info` query for the artifact ID, concluding +that the commit is legitimate once you get enough HTTP 200 status codes back. All of this is +hypothetical, because Fossil doesn’t do this today. + +[AGI]: https://en.wikipedia.org/wiki/Artificial_general_intelligence +[rcks]: /help?cmd=repo-cksum + + + + +## Anonymity + +Many blockchain based technologies go to extraordinary lengths to +allow anonymous use of their service. + +As typically configured, Fossil does not: commits synced between servers +always at least have a user name associated with them, which the remote +system must accept through its [RBAC system][caps]. That system can run +without having the user’s email address, but it’s needed if [email +alerts][alert] are enabled on the server. The remote server logs the IP +address of the commit for security reasons. That coupled with the +timestamp on the commit could sufficiently deanonymize users in many +common situations. + +It is possible to configure Fossil so it doesn’t do this: + +* You can give [Write capability][capi] to user category “nobody,” so + that anyone that can reach your server can push commits into its + repository. + +* You could give that capability to user category “anonymous” instead, + which requires that the user log in with a CAPTCHA, but which doesn’t + require that the user otherwise identify themselves. + +* You could enable [the `self-register` setting][sreg] and choose not to + enable [commit clear-signing][cs] so that anonymous users could push + commits into your repository under any name they want. + +On the server side, you can also [scrub] the logging that remembers +where each commit came from. + +That info isn’t transmitted from the remote server on clone or pull. +Instead, the size of the `rcvfrom` table after initial clone is 1: it +contains the remote server’s IP address. On each pull containing new +artifacts, your local `fossil` instance adds another entry to this +table, likely with the same IP address unless the server has moved or +you’re using [multiple remotes][mrep]. This table is far more +interesting on the server side, containing the IP addresses of all +contentful pushes; thus [the `scrub` command][scrub]. + +Because Fossil doesn’t +remember IP addresses in commit manifests or require commit signing, it +allows at least *pseudonymous* commits. When someone clones a remote +repository, they don’t learn the email address, IP address, or any other +sort of [PII] of prior committers, on purpose. + +Some people say that private, permissioned blockchains (as you may +imagine Fossil to be) are inherently problematic by the very reason that +they don’t bake anonymous contribution into their core. The very +existence of an RBAC is a moving piece that can break. Isn’t it better, +the argument goes, to have a system that works even in the face of +anonymous contribution, so that you don’t need an RBAC? Cryptocurrencies +do this, for example: anyone can “mine” a new coin and push it into the +blockchain, and there is no central authority restricting the transfer +of cryptocurrency from one user to another. + +We can draw an analogy to encryption, where an algorithm is +considered inherently insecure if it depends on keeping any information +from an attacker other than the key. Encryption schemes that do +otherwise are derided as “security through obscurity.” + +You may be wondering what any of this has to do with whether Fossil is a +blockchain, but that is exactly the point: all of this is outside +Fossil’s core hash-chained repository data structure. If you take the +position that you don’t have a “blockchain” unless it allows anonymous +contribution, with any needed restrictions provided only by the very +structure of the managed data, then Fossil does not qualify. + +Why do some people care about this distinction? Consider Bitcoin, +wherein an anonymous user cannot spam the blockchain with bogus coins +because its [proof-of-work][pow] protocol allows such coins to be +rejected immediately. There is no equivalent in Fossil: it has no +technology that allows the receiving server to look at the content of a +commit and automatically judge it to be “good.” Fossil relies on its +RBAC system to provide such distinctions: if you have a commit bit, your +commits are *ipso facto* judged “good,” insofar as any human work +product can be so judged by a blob of compiled C code. This takes us +back to the [digital ledger question](#dlt), where we can talk about +what it means to later correct a bad commit that got through the RBAC +check. + +We may be willing to accept pseudonymity, rather than full anonymity. +If we configure Fossil as above, either bypassing the RBAC or abandoning +human control over it, scrubbing IP addresses, etc., is it then a public +permissionless blockchain in that sense? + +We think not, because there is no [longest chain rule](#lcr) or anything +like it in Fossil. + +For a fair model of how a Fossil repository might behave under such +conditions, consider GitHub: here one user can fork another’s repository +and make an arbitrary number of commits to their public fork. Imagine +this happens 10 times. How does someone come along later and +*automatically* evaluate which of the 11 forks of the code (counting the +original repository among their number) is the “best” one? For a +computer software project, the best we could do to approximate this +devolves to a [software project cost estimation problem][scost]. These +methods are rather questionable in their own right, being mathematical +judgement values on human work products, but even if we accept their +usefulness, then we still cannot say which fork is better based solely +on their scores under these metrics. We may well prefer to use the fork +of a software program that took *less* effort, being smaller, more +self-contained, and with a smaller attack surface. + + +[alert]: ./alerts.md +[capi]: ./caps/ref.html#i +[mrep]: /help?cmd=remote +[scost]: https://en.wikipedia.org/wiki/Software_development_effort_estimation +[scrub]: /help?cmd=scrub +[sreg]: /help?cmd=self-register + + +# Conclusion + +This author believes it is technologically indefensible to call Fossil a +“blockchain” in any sense likely to be understood by a majority of those +you’re communicating with. + +Within a certain narrow scope, you can defend this usage, but if you do +that, you’ve failed any goal that requires clear communication: it +doesn’t work to use a term in a nonstandard way just because you can +defend it. The people you’re communicating your ideas to must have the +same concept of the terms you use. + + +What term should you use instead? Fossil stores a DAG of hash-chained +commits, so an indisputably correct term is a [Merkle tree][mt], named +after [its inventor][drrm]. You could also use the more generic term +“hash tree.” + +Fossil is a technological peer to many common sorts of blockchain +technology. There is a lot of overlap in concepts and implementation +details, but when speaking of what most people understand as +“blockchain,” Fossil is not that. + +[drrm]: https://en.wikipedia.org/wiki/Ralph_Merkle +[mt]: https://en.wikipedia.org/wiki/Merkle_tree Index: www/caps/admin-v-setup.md ================================================================== --- www/caps/admin-v-setup.md +++ www/caps/admin-v-setup.md @@ -46,12 +46,12 @@ choices. You can also look at the role of Admin from the other direction, up through the [user power hierarchy][ucap] rather than down from Setup. An Admin user is usually a “super-developer” role, given full control over -the repository’s managed content: versioned artifacts in [the block -chain][bc], [unversioned content][uv], forum posts, wiki articles, +the repository’s managed content: versioned artifacts in [the hash tree][bc], +[unversioned content][uv], forum posts, wiki articles, tickets, etc. We’ll explore these distinctions in the rest of this document. [bc]: ../blockchain.md @@ -158,17 +158,17 @@ system][shun] is to clean up after a spammer, and that's exactly the sort of administrivia we wish to delegate to Admin users. Coupled with the Rebuild button on the same page, an Admin user has the power to delete the repository's entire - [blockchain][bc]! This makes this feature a pretty good + [hash tree][bc]! This makes this feature a pretty good razor in deciding whether to grant someone Admin capability: do you trust that user to shun Fossil artifacts responsibly? Realize that shunning is cooperative in Fossil. As long as there are surviving repository clones, an Admin-only user who deletes the - whole blockchain has merely caused a nuisance. An Admin-only user + whole hash tree has merely caused a nuisance. An Admin-only user cannot permanently destroy the repository unless the Setup user has been so silly as to have no up-to-date clones. * **Moderation**: According to the power hierarchy laid out at the top of this article, Admins are greater than Moderators, so control over @@ -344,11 +344,11 @@ access on the host system, we almost certainly don't want to allow them to change such settings.

* **SQL**: The Admin → SQL feature allows the Setup user to enter raw SQL queries against the Fossil repository via Fossil UI. This not - only allows arbitrary ability to modify the repository blockchain + only allows arbitrary ability to modify the repository hash tree and its backing data tables, it can probably also be used to damage the host such as via `PRAGMA temp_store = FILE`. * **Tickets**: This section allows input of aribtrary TH1 code that runs on the server, affecting the way the Fossil ticketing system Index: www/caps/impl.md ================================================================== --- www/caps/impl.md +++ www/caps/impl.md @@ -62,11 +62,11 @@ 3. You can purposely overwrite good timestamps with bad ones and push those changes up to the remote with no interference, even though Fossil tries to make that a Setup-only operation. All of this falls out of two of Fossil’s design choices: sync is -all-or-nothing, and [the Fossil block chain][bc] is immutable. Fossil +all-or-nothing, and [the Fossil hash tree][bc] is immutable. Fossil would have to violate one or both of these principles to filter such problems out of incoming syncs. We have considered auto-[shunning][shun] “bad” content on sync, but this is [difficult][asd] due to [the design of the sync protocol][dsp]. This Index: www/caps/ref.html ================================================================== --- www/caps/ref.html +++ www/caps/ref.html @@ -77,11 +77,11 @@ d n/a Legacy capability letter from Fossil's forebear CVSTrac, which has no useful - meaning in Fossil due to its durable blockchain nature. This + meaning in Fossil due to the nature of its durable Merkle tree design. This letter was assigned by default to Developer in repos created with Fossil 2.10 or earlier, but it has no effect in current or past versions of Fossil; we recommend that you remove it in case we ever reuse this letter for another purpose. See this Index: www/checkin_names.wiki ================================================================== --- www/checkin_names.wiki +++ www/checkin_names.wiki @@ -288,8 +288,8 @@ # [#root | root:BRANCH] # [#merge-in | merge-in:BRANCH] # [#tag-ts | TAG:timestamp] # Full artifact hash or hash prefix. # Any other type of symbolic name that Fossil extracts from - blockchain artifacts. + artifacts.
Index: www/fileedit-page.md ================================================================== --- www/fileedit-page.md +++ www/fileedit-page.md @@ -56,11 +56,11 @@ [xhr]: https://en.wikipedia.org/wiki/XMLHttpRequest ## `/fileedit` **Works by Creating Commits** Thus any edits made via that page become a normal part of the -repository's blockchain. +repository. ## `/fileedit` is *Intended* for use with Embedded Docs ... and similar text files, and is most certainly **not intended for editing code**. Index: www/fossil-v-git.wiki ================================================================== --- www/fossil-v-git.wiki +++ www/fossil-v-git.wiki @@ -230,11 +230,11 @@ The baseline data structures for Fossil and Git are the same, modulo formatting details. Both systems manage a [https://en.wikipedia.org/wiki/Directed_acyclic_graph | directed acyclic graph] (DAG) of [https://en.wikipedia.org/wiki/Merkle_tree | Merkle -tree] / [./blockchain.md | block chain] structured check-in objects. +tree] structured check-in objects. Check-ins are identified by a cryptographic hash of the check-in contents, and each check-in refers to its parent via its hash. The difference is that Git stores its objects as individual files in the .git folder or compressed into bespoke @@ -741,11 +741,11 @@ repository immediately if successful, even though you haven't tested the change yet. It's possible to argue for such a design in a tool like Git which doesn't automatically push the change up to its parent, because you can still test the change before pushing local changes to the parent repo, but in the meantime you've made a durable change to your local Git -repository's blockchain. You must do something drastic like git +repository. You must do something drastic like git reset --hard to revert that rebase if it causes a problem. If you push your rebased local repo up to the parent without testing first, you've now committed the error on a public branch, effectively a violation of [https://www.atlassian.com/git/tutorials/merging-vs-rebasing#the-golden-rule-of-rebasing @@ -759,11 +759,11 @@ Fossil cannot sensibly work that way because of its default-enabled autosync feature. Instead of jumping straight to the commit step, Fossil applies the proposed merge to the local working directory only, requiring a separate check-in step before the change is committed to the -repository blockchain. This gives you a chance to test the change first, +repository. This gives you a chance to test the change first, either manually or by running your software's automatic tests. (Ideally, both!) Another difference is that because Fossil requires an explicit commit for a merge, it makes you give an explicit commit message for Index: www/mirrorlimitations.md ================================================================== --- www/mirrorlimitations.md +++ www/mirrorlimitations.md @@ -14,14 +14,14 @@ as Wiki, Tickets, Technotes, and the Forum are not supported in Git, so those features are not included in an export. Third-party Git based tooling may add some of these features (e.g. GitHub, GitLab) but because their data are not stored in the Git -blockchain, there is no single destination for Fossil to convert its +repository, there is no single destination for Fossil to convert its equivalent data *to*. For instance, Fossil tickets do not become GitHub issues, because that is a proprietary feature of GitHub separate from -Git proper, stored outside the blockchain on the GitHub servers. +Git proper, stored outside the repository on the GitHub servers. You can also see the problem in its inverse case: you do not get a copy of your GitHub issues when cloning the Git repository. You *do* get the Fossil tickets, wiki, forum posts, etc. when cloning a remote Fossil repo. @@ -29,14 +29,14 @@ ## (2) Cherrypick Merges The Git client supports cherrypick merges but does not record the cherrypick parent(s). -Fossil tracks cherrypick merges in its blockchain and displays +Fossil tracks cherrypick merges in its repository and displays cherrypicks in its timeline. (As an example, the dashed lines [here](/timeline?c=0a9f12ce6655b7a5) are cherrypicks.) Because Git does -not have a way to represent this same information in its blockchain, the +not have a way to represent this same information in its repository, the history of Fossil cherrypicks cannot be exported to Git, only their direct effects on the managed file data. ## (3) Named Branches @@ -73,11 +73,11 @@ ## (5) Amendments To Check-ins Check-ins are immutable in both Fossil and Git. However, Fossil has a mechanism by which tags can be added to -its blockchain to provide after-the-fact corrections to prior check-ins. +its repository to provide after-the-fact corrections to prior check-ins. For example, tags can be added to check-ins that correct typos in the check-in comment. The original check-in is immutable and so the original comment is preserved in addition to the correction. But software that displays the check-ins knows to look for the comment-change Index: www/mkindex.tcl ================================================================== --- www/mkindex.tcl +++ www/mkindex.tcl @@ -14,11 +14,11 @@ alerts.md {Email Alerts And Notifications} antibot.wiki {Defense against Spiders and Bots} backoffice.md {The "Backoffice" mechanism of Fossil} backup.md {Backing Up a Remote Fossil Repository} blame.wiki {The Annotate/Blame Algorithm Of Fossil} - blockchain.md {Fossil As Blockchain} + blockchain.md {Is Fossil A Blockchain?} branching.wiki {Branching, Forking, Merging, and Tagging} bugtheory.wiki {Bug Tracking In Fossil} build.wiki {Compiling and Installing Fossil} cap-theorem.md {Fossil and the CAP Theorem} caps/ {Administering User Capabilities} Index: www/permutedindex.html ================================================================== --- www/permutedindex.html +++ www/permutedindex.html @@ -41,11 +41,11 @@
  • Backoffice mechanism of Fossil — The
  • Bash Prompt — Fossilized
  • Benefits Of Version Control
  • Between Setup and Admin Users — Differences
  • Between SHA1 and SHA3-256 — Hash Policy: Choosing
  • -
  • Blockchain — Fossil As
  • +
  • Blockchain? — Is Fossil A
  • Bots — Defense against Spiders and
  • Branches — Creating, Syncing, and Deleting Private
  • Branching, Forking, Merging, and Tagging
  • Bug Tracking In Fossil
  • Build Process — The Fossil
  • @@ -126,11 +126,10 @@
  • Format vs Fossil Repo Size — Image
  • Formatting Rules — Markdown
  • Formatting Rules — Wiki
  • Forums — Fossil
  • Fossil and the CAP Theorem
  • -
  • Fossil As Blockchain
  • Fossil Changelog
  • Fossil Core Concepts
  • Fossil CSS Tips and Tricks
  • Fossil Delta Encoding Algorithm
  • Fossil Delta Format
  • @@ -188,10 +187,11 @@
  • Installing Fossil — Compiling and
  • Integrating Fossil in the Microsoft Express 2010 IDE
  • Integrity Self Checks — Fossil Repository
  • Interface — The Fossil Web
  • Interwiki Links
  • +
  • Is Fossil A Blockchain?
  • JavaScript in Fossil — Use of
  • Language — The TH1 Scripting
  • License Agreement — Contributor
  • Limitations On Git Mirrors
  • Links — Interwiki
  • Index: www/shunning.wiki ================================================================== --- www/shunning.wiki +++ www/shunning.wiki @@ -32,12 +32,12 @@ some alternatives that usually suffice, which don't damage the project's fossil record: