9 ms·
Why I'm using Fossil SCM instead of other source control systems (2016)
- urlwolf 4y agoWould the wiki part of fossil be a good static site generator? As in, if I wanted to publish a markdown lake with lots of interlinking with [[wikilinks]] would this work? It might be faster than many SSGs and perhaps less complicated.
- sgbeal 4y ago> Would the wiki part of fossil be a good static site generator? Not in the general case, no. Fossil-generated wiki/markdown output expect to be browsed within the context of a fossil repository, and will generate links accordingly. There might be very limited use cases where it would work reasonably well, but not generically. e.g. adding a link to a local file or another wiki page will not work if the output is browsed from outside of a fossil repo instance.
- andix 4y agoAnd what makes Fossil now better as gitea or GitHub for example?
- hasperdi 4y agoYou'll discover the arguments why Fossil is better if you read the article
- rs_rs_rs_rs_rs 4y agoThat question will make more sense when you see the article is from 2016.
- marginalia_nu 4y agoHas either software changed since then?
- andix 4y agolol, the article talks about how nice it is to have a self hosted GUI for your SCM. There are a lot of those for git too, but they ignore that fact.
- JonChesterfield 4y agoIt's a feature to have it right there, a 'fossil ui' away from launching in a browser instead of whatever extra installed stuff git offers. Also choosing the right one from many takes more patience than I have. Notably 'fossil' is a single static binary that can be anywhere on the $PATH too.
- spfzero 4y agoI'm both a Github user and a Fossil user. I use Fossil for all of my own projects, because the common operations have less friction and everything runs very fast locally. I'm including wiki, ticketing, etc. in the "common operations" even though I'm the only user of those things. I would say if you do all of your development in a corporate or institutional setting where you are a contributor on a distributed team, Github is the best choice and the choice will often already have been made for you anyway. If on the other hand you do a lot of development on your own projects, it could be beneficial to spend a half-day and try out Fossil.
- JonChesterfield 4y agoA corporate setting once required perforce so I did everything in a local fossil repo and begrudgingly created the changes in perforce to ship already completed things.
- rs_rs_rs_rs_rs 4y agoThis is from 2016...
- memorable 4y agoSo?
- schemescape 4y agoThe author links to a page that describes how the developer password (used in the web interface) is stored in the database in plain text. Is that still the case? (I sure hope not!)
- de6u99er 4y agoThe article is from 2016. I doubt passwords are still stored in plaintext.
- sgbeal 4y ago> The article is from 2016. I doubt passwords are still stored in plaintext. Fossil has not stored a plaintext password in many years (2008-ish). Only a one of the small handful of "first-generation" repositories has any chance whatsoever of having such a password (and only if the user has never updated their password since then).
- b3morales 4y agoThis is fairly shocking for 2016 as well. It wasn't really that long ago.
- schemescape 4y agoIt sounds like clear text is still supported, but new passwords are written as a SHA-1 hash of the password concatenated with user+database-specific strings (since 2010): https://fossil-scm.org/home/doc/trunk/www/password.wiki https://fossil-scm.org/home/doc/trunk/www/password.wiki That’s an improvement, but I doubt it’s best practice.
- chrismorgan 4y agoOuch. A single round of SHA-1 means you can easily make over a million attempts per second on a single general-purpose processor, considerably more on GPUs or specialised hardware. Ignoring any of the other weaknesses of SHA-1, this means that if someone gets read-only access to the database, anything but a long random password will fall very quickly (like, probably within a few seconds).
- JonChesterfield 4y agoI wonder what the server feature gives you. I've been using fossil for a decade or so, always over ssh. Definitely don't need to do that setup part. Fossil doesn't do rewriting history. I think that rules it out for large team efforts. As an immutable distributed log of everything I write by myself it's essentially perfect.
- thunderbong 4y agoIt does allow you to create private branches which solves this problem
- dmtroyer 4y agoWhat large team workflows require rewriting history? I’m genuinely curious as someone who is always looking for a better team git workflow.
- dmtroyer 4y agoahh, right, thanks for the responses. I was confusing not being able to rewrite history on remote branches with not being able to rewrite history at all. I rewrite it locally all the time but almost never remotely.
- peterhunt 4y agoSome engineer checks in a customer’s personal data as a test fixture and it has to be purged from git history to be compliant with gdpr/ccpa.
- spiffytech 4y agoFossil has a 'purge' command for this purpose, though it's marked as a work-in-progress.
- sgbeal 4y ago(A fossil dev here...) "Purge" is really only intended for use with fossil's "bundle" feature, bundles being essentially feature-rich patches which record all of the historical state of the bundle. (Yes, it's long been flagged as experimental, but it's also been unchanged since it was added so i'll look into getting that notice removed or amended.) The idea of fossil's bundles is that a person not associated with a project can submit a patch in the form of a bundle, a developer imports that bundle into their repo and either retains it or "purges" it, leaving the developer's repo clone back in a clean pre-bundle state. That feature can, however, and sometimes is, used for "popping" the top-most commit from a repository (so long as it has not yet been pushed to a remote). So long as a local repo has not been synced with any remotes, and so long as there are no branch points to interfere with it, repeated applications the bundle/purge combo can be used to pop the top-most checkin multiple times, effectively wiping out as-yet-unsynced changes even if they span multiple checkins.
- deleted 4y ago[deleted]
- cortesoft 4y agoI feel like an SCM would have to be WAY better than git to make it worth using. The entire developer community is on git, so you are still going to have to know how to use git in order to access other open source projects. If you are already going to have to be using git for many things, why add a second SCM you have to learn to use?
- JonChesterfield 4y agoThe learning curve on git is absurd. It's just so long ago we've mostly forgotten.
- SoftTalker 4y agoAnd I would speculate that most devs only know a small fraction of git's functionality. It is certainly the case for me.
- Gigachad 4y agoYeah the initial intro to git takes about 10 minutes. Git add ., git commit, git push. Done. You learn new features as they become required. There is no need to read the entire manual and understand how git bisect works when you are working on your personal blog.
- MatthiasPortzel 4y agoI was thinking about this the other day. The learning curve for git isn’t steep at all, because it’s possible to learn git so slowly. It’s possible to use git with any level of proficiency. If you had to sit down and “learn git” before you could use it, that would be brutal and we would be using something else.
- nmz 4y agoLove it when people don't talk about rebase. considering its both dangerous, and a requirement to use for many teams.
- secwang 4y agoWhat we need is a version system, followed by git. In my personal opinion, if you only learn one, it is git. If you want to learn two, they are git and fossil. Fossi is more suitable for individual private projects than git. He cuts down some collaboration problems, and this is a very high-quality software. As for the comparison with git, I prefer that they are a software that optimizes different scenarios.
- yjftsjthsd-h 4y agoPersonally, I learned hg and then git, and I would 100% do that again if I were doing it over; my experience was that hg was much easier to learn, but that once I'd learned it git was pretty easy to pick up.
- secwang 4y agoAs for struggling with why there is such a judgment, you can try it yourself for up to one hour. I was shocked by the diff quality of fossil. All linguistic debates cannot replace the experience of the century.
- AnonC 4y ago> I was shocked by the diff quality of fossil. Could you elaborate, since you used the word “shocked”? Was it terrible or just bad? Doesn’t Fossil have any hooks to use another diff tool?
- bch 4y ago> Doesn’t Fossil have any hooks to use another diff tool? $ fossil set diff-command “diff -bu”
- thunderbong 4y agoI think it was meant in a good way!
- pid-1 4y agoJust posted this in another topic, for those who want a up to date comparison: https://fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki https://fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki
- anotherevan 4y agoI recently had a play with Fossil to see if I thought we might give it a try on a small project and honestly I found it a bit disappointing. The biggest surprise was the web UI didn't seem to provide a way to review changed files in the working directory and perform a commit. With Mercurial, before a commit I'll usually use Tortoisehg to review what I've changed, running diff views (with Meld) on my code changes, etc. There didn't seem to be a non-command-line way to do this. I guess I expected a nice commit interface that would also easily let me add cross-references to related issues and such, given it is all integrated.
- sgbeal 4y ago> The biggest surprise was the web UI didn't seem to provide a way to review changed files in the working directory and perform a commit. Since (IIRC) late 2021, you can view a diff in your browser with: fossil diff -b (use -by for side-by-side diff) A checkin cannot be performed via the UI. That has to be done via the CLI. Fossil has, for many years, supported: fossil diff -tk for a TK-based diff view, but that only works on systems with working tcl/tk installations.
- zoomablemind 4y ago>...The biggest surprise was the web UI didn't seem to provide a way to review changed files in the working directory and perform a commit. You can get this sort of UI workflow from within IDEs which support Fossil SCE. Some IDEs even allow selective diff hunk Undo.
- woojoo666 4y agoThe author brings up Fossil's server capabilities when comparing to Git, but I think it would be more apt to compare those to something like Gitea
- thayne 4y agoI like a lot of things about fossil, but it is very opinionated, which is fine if those opinions match your workflow, but if not, it's a problem. And it was designed primarily for small teams or individual developers, so I'm not sure how well it scales to larger projects and teams. And then there are some other little things, like the absence of a good free hosting service similar to github or gitlab, the ignore system isn't as flexible as git, etc.