It's quite sad to see that so few projects use it. The idea of having everything in one repo, incl. bugs, is just great. I can create new bugs while offline, update bugs while offline, etc. and then just sync everything once I'm back online.
It also has pretty good support for incrementally importing from and exporting to Git: https://blog.nil.im/?79
git clone https://github.com/project/name
would have a wiki: git clone https://github.com/project/name.wiki
I don't know if this is a special setup or not.Will they remove this?
Are there ways to get to other stuff?
The bug thing I kinda disagree with... or at least I'm skeptical, shall we say. Bugs are solved when the fix has been deployed and verified fixed in production, not when someone commits/pushes/merges a potential fix to the main branch. Sure you can separate the 'bug-X fixed' change to the bug tracker and the code commits, but then what have you gained over just a 'Fixes: X' annotation in the commit msg?
This could be misunderstanding on my part about the intent/process around bug/issue handling in Fossil, so I'd appreciate if you could expand on what you like about and how it works within the larger 'deploy a fix' context.
(I tried Fossil for a bit on a very small scale -- it was pleasant enough, but ultimately Git's network effects win out big time... at least for me.)
For example, on a flight, I can look at the bug tracker (since it's part of the clone), pick a bug I want to work on, create a few commits to fix it, then update that bug (set it to closed, reference the commits that fixed it), and then upload it all when the plane landed again.
I've read so many articles about the advantages of static site generators and serverless implementations for blogs so that they are able to handle traffic and the insane amount of tooling around each of those concepts. It's so great to see a well crafted piece of software being able to take care of all that so seamlessly.
I'm a big fan of fossil personally and use it for all my projects as well as for all the projects in our organization.
sqlite.org and all of the other repos D. Richard Hipp maintains (Fossil, Pikchr, the separate SQLite docs repo, the forums for Fossil and SQLite...) all run on a $40/month VPS. The page generation time is calculated and displayed at the bottom of non-static pages like this one: https://sqlite.org/src/
Oh YESS!!! Can i ask what OS you use on it?
BTW CoolThread ;)
- handles large files effectively (build artifacts, 10-40GiBs each, and other binary dependencies)
- partial checkout of the repo/view
- git style operations (have stage area, can stage parts of a file, can stash changes and reapply later, cherry pick)
- can view the history of an individual file (support file relocation)
- access control on individual files, and partial review of the repository (views are "granted" to developers)
- good tooling
- immutable when it makes sense (e.g. you cannot changed a published commit)
- works offline (if possible)
- large mono repo
I evaluated git annex and git lfs, and finally chosen Perforce, mainly for its large file handling, view for each developer and ACL, but the lack of flexibility makes me don't want to commit, and every time I do a merge, I say to myself, "uuh, this again". The other thing it lacks is the "ease of mind", with git, everything is checksummed, if the content changes, it will be noticed by git, with Perforce, you have to tell it you want to edit it. (Not nit-picking on Perforce, I actually think Perforce is a good software, its server runs flawlessly, and have a good p4v (if you don't mind the friction), I think it just lacks good tooling and git style operations)
GitLab will continue to make investments in it for at least the next year as it's a big issue especially for gaming companies.
Full disclosure, currently a GitLab employee.
EDIT: But Perforce is nice too, and free for up to 5 devs.
i'm curious if the above are compatible with a patch-based VCS. if so, maybe good areas for would-be future VCSs to focus on, to establish a niche...
Not to mention the lack of `rebase -i` to clean up local commits.
[1]: https://www.fossil-scm.org/fossil/help?cmd=commit [2]: https://www.fossil-scm.org/fossil/help?cmd=stash
> Cherry-picks work better with small check-ins
Maybe it's just bad git tooling or me using the tools wrong, but if I need to cherry-pick and there are conflicts, it is always way easier to squash everything down and pick it in one go— if I don't do that, I end up resolving the same conflict over and over as new commits pile in on top of it and meet a conflict-resolved state that they then have a further conflict with.
One simple example:
commit 1: things work
commit 2: Feature X, regress
commit 4: Feature Y, break things by accident
commit 5: oops, fix commit #4
...
You land on commit 4 breaking your commit, but if #5 and #4 had been squashed then you would find commit #3 much more easily.
With a tiny history like this it's not a big deal, but with a larger one, it becomes an issue.
I read that page. It's their opinion and I disagree with it.
To be clear of where I'm coming from, I've never used fossil, and I've used git regularly for about 10 years. I only use git from the commandline except that I often use `gitk` to read a branch's commit history or inspect diffs, and I use `kdiff3` for interactive merging when there are conflicts. I actively disable git "integrations" in editors and IDEs.
---
>1.0
Whether other people struggle with rebase or not does not affect me, because I have no problems using it. (This logic also extends to people who complain the entire git CLI is hard to use.)
Now, this might sound like the seasoned C programmer saying "Other people accidentally write UB but I don't, so C is perfectly fine." but there is a difference. UB with C is problematic because it's hard to know it happened, which is why we know the seasoned C programmer might have unknowingly written UB after all. This is not the case with `git rebase` though. Either you do it correctly or you don't, and I can confidently say I do it correctly.
>2.1
This is specifically talking about rebases that move commits onto new parents. Rebase does much more than that. For this particular use case, I agree that some projects even when using git prefer to have merge commits instead of rebased commits, and that's fine. But for projects that do want a linear series of commits, it's good to have the choice. Rebased commits also make it easier to revert just a single commit instead of the whole merge (though of course it's not impossible to revert a single commit of a merged branch either).
>2.2
This whole section is a non-sequitur because indeed the correct pre-rebase diff would indeed be diff(C2, C5) even in the git case. But if you're planning to rebase the code in order to merge it, you need to rebase the code to know what the diff will be.
>3.0
The Windows Vista citation starts off with the (correct) result that lack of communication between engineers of disparate components leads to bugs, but then associates it to mean that these disparate components were being developed in private branches. The cited paper does not talk about branches at all. Indeed, bugs happening because of private branches was not the case then, and is not the case now. The reason those bugs happen is because the engineers of a particular component only work with code of their component.
The "egoless" citation is from a book, so I can't tell if the book specifically says private branches have anything to do with ego or not.
At any rate, this section is fundamentally confused. Making branches public doesn't mean you can't rebase them. If I work on an OSS github project, I would certainly make my WIP code branch public. That doesn't mean I don't want to rebase it right before I send a PR to clean the cruft up.
I think the article author may have read the git advice about not rebasing public branches and thought it meant all non-private branches. It actually means branches other people would want to pull from you and who are not expecting it to be rebased. Single-person development happens in branches only that single person cares about, so whether the branches are private or public makes no difference to that person wanting to be able to rebase them. If a group of people are collaborating and they agree that rebases are going to happen, nothing is wrong with letting them do that. The only problem is with rebasing public branches that people pull from and which those people do not expect to be rebased, like a public repo's `master`.
>4.0
So test each commit then. git doesn't makes it impossible to do that or anything. If anything, ensuring tests pass on each intermediate commit makes `bisect`ing easier in the future.
Also, only using merges means the only tested commit is the merge commit, so you lose the ability to check which commit in the merged branch caused the problem.
See also 7.0
>5.0
`git rebase --ignore-date` will reset the commit date of each rebased commit to the current time.
>6.0
It is correct that commit messages are the only way to associate some of the metadata that Fossil lets you manipulate separately. So (2) and (3) do benefit from Fossil's approach.
(1) and especially (5) happens rarely enough in my experience that it isn't enough justification.
I'm not sure what (4) is referring to by "routine display", but in general the only branches things like `gitk` will show you are the ones you ask for.
>7.0
It also throws away non-valuable garbage. When I'm bisecting a bug, or running a `blame` to figure out what commit added a particular line, I don't need to go through half-commits that got reverted afterwards.
False starts and incorrect approaches can be documented in the commit message or in the code comments.
Also this directly contradicts 4.0 unless we are to assume that only merge commits get tested, and that the user running `blame` does not go deeper than the merge that introduced the line, which has the problem I mentioned in 4.0
>7.1
This section is just a longer reiteration of 7.0, so it has the same rebuttal.
>7.2
This has switched to specifically talking about squash rebases, which is not necessarily the only kind of rebase (and is also not the kind of rebase that the diagram in 2.2 was talking about). I also dislike squashed rebases when merging pulls. But if I have to squash two commits in my WIP branch I absolutely want to be able to.
>7.3
If the checkins are being rebased and are going to be merged without squashing, then each commit has to stand on its own by definition, so of course they should all have individual justifications.
>7.4, 7.5
These are the same as 7.2 and 8.0 below.
>8.0
This appears to be saying that fossil's cherry-pick is not just a wrapper around rebase like git's is. So I agree that (1) and (4) are benefits due to Fossil's approach.
(2) is exactly the same as 4.0
I don't understand what (3) is trying to say.
It's already hard to move people away from a system that has huge network effects. This makes it much harder.
What fossil brings that those systems don't is indeed the network effect as you pointed out. It's integrated with the web frontend, and is thus used by everyone using fossil and fossil's bug tracking, based on experience with cvstrac, is low ceremony, easy to use and reasonably effective -- even more than "vi bugs.txt" which sets a remarkably low ceremony bar.
I tried to rally some interest on the mailing list behind separating the working parts from the UI chrome into a 'libfossil', which could be integrated into other programs. The verdict was that D. Richard Hipp doesn't really want to, since it's a classic C monolith where the allocation strategy doesn't make that separation easy. Someone started the job, but had to abandon it due to RSI issues.
I still kinda hope someone bites the bullet, because a "libsqlite for versioning" would be a real boon for application developers. Even for fossil's central use case as a code VCS, the monolithic bundling of everything into one program is a mixed bag.
The architecture behind it is pretty simple, since Fossil is doing all the work and I'm just orchestrating it (although I do allow you to execute arbitrary Tcl scripts as part of it, so there is some work that goes into the sandbox).
Even though one-way pushes to github/gitlab via --fast-export / --fast-import are relatively painless, going the other way for contributions is still not easy because of rebase issues, etc, at least to my knowledge.
When I started exploring this I registered the gitbug.org domain - would you be interested in using it for your project?
I have a bunch of git-bug.tld domains so I guess I'm all set already?
I'd be curious to see your project. Maybe there is a good idea in there? In any case, you are very welcome to join the party.
https://fossil-scm.org/home/help?cmd=wiki
To edit a page, do an export and then a commit when you're done. It was easy enough to add this as a menu item in Emacs.
fossil wiki export foo.wiki foo.md
fossil wiki commit foo.wiki foo.md
$ vim
...write, write, write...
:w !fossil wiki create "The Foo Article" -
:q!
Later: $ vim
:r !fossil wiki export "The Foo Article" -
...write, write, write some more...
:w !fossil wiki commit "The Foo Article" -
Wrapping all of that up into Vim macros would be a small matter for someone sufficiently interested.Also, someone wanting to edit wiki-like docs in a text editor rather than in the web UI is probably going to find Fossil's embedded docs feature more useful anyway: https://fossil-scm.org/home/doc/trunk/www/embeddeddoc.wiki
Over time, I have started to think in terms of innovation tokens [1]. You cannot choose all the new technologies all the time and you have to measure how many innovation tokens would you like to spend on what.
Fossil Versus Git: https://fossil-scm.org/fossil/doc/trunk/www/fossil-v-git.wik...
Why SQLite Does Not Use Git: https://sqlite.org/whynotgit.html
Hints For Users With Prior Git Experience: https://fossil-scm.org/home/doc/trunk/www/gitusers.md
A quick scan of the other items are all more-or-less true so it's a shame it leads with that.
That sounds great, but I'm scared of checking these features out because I'm currently looking at the quick start guide[0] and am immediately put off by how awful the CSS is. Formatting running text such that a single line can be ~500 characters wide[1] results in very low readability. There's a difference between ‘themeable’ and ‘configuring a custom theme is mandatory because the default option makes you feel sick’.
In case someone working on Fossil sees this: I just bookmarked the site because the project seems very attractive in most other respects. I hope that when I eventually re-visit that link, I'll be able to go on a significantly deeper dive. A somewhat sane style sheet would certainly help.
[0] https://www.fossil-scm.org/home/doc/trunk/www/quickstart.wik... [1] https://i.paste.pics/A9RQ8.png
I took the aforementioned screenshot on a huge display to illustrate the issue more clearly, but on a garden-variety 1920×1080 monitor — stock Firefox, no extensions that would affect rendering — Fossil wiki's text formatting is still objectively bad.
Citation needed, especially when the literature doesn't support such a statement. See https://twitter.com/danluu/status/1115707741102727168
[0]: http://darcs.net/ [1]: https://en.wikibooks.org/wiki/Understanding_Darcs/Patch_theo...
There's a more modern reincarnation of the similar ideas — https://pijul.org. Ready for playing with, not much else.
I even created git wrapper somewhat by fossil command line, but it's not finished - https://github.com/severak/ginger
[1]: https://gitea.io