Working with ChiselApp and Fossil

in «tip» by Michael Beard
Tags: , , , ,

Getting Fossil and ChiselApp repos working

For whatever reason, I can’t seem to log into chiselapp with the password that I chose (or one that Apple chooses for me). I have had to say “Forgot my password” and have them send an email (with token) to my email above. Sigh.

Ok, figured out the problem with the password, though, not sure there is anything to do about it. The way that ChiselApp handles things, you have a main password for your account and then a password for each repo. So, from Apple’s POV, they are all the same, even though they have different endpoints at the SAME url. Sigh.

Reference Stuff

I'm using How to chisel at chiselapp.com to figure out how to get things synched up and working with the remote repos on ChiselApp.

How to clone (7. Cloning a repository)

Here is how to clone one of them, though, usually not how I do it, but you get the point.

fossil clone https://LegacyCode@chiselapp.com/user/LegacyCode/repository/replit-clui replit-clui.fossil
fossil open replit-clui.fossil

I usually have a “repos” directory and then a “code” directory (both at the same level) to keep it where I don’t accidentally delete something I didn’t mean to.

Also, by doing this, you can run the UI server on the directory where your fossil repos are, and it will show you all of them, which is pretty nice.

How to push (if auto-sync doesn't work) (8. Pushing to chiselapp.com)

If, for whatever reason, you get something that looks similar to this:

$ fossil commit -m "a small change"
Autosync:  https://chiselapp.com/user/LegacyCode/repository/MyMusings
Round-trips: 1   Artifacts sent: 0  received: 0
Pull done, sent: 414  received: 415  ip: 74.208.146.128
New_Version: 996a3a2db6d1b748c40d8a85d6a324ff41fe1ac8a7b35d30d8bd7d9fa9149fba
Autosync:  https://chiselapp.com/user/LegacyCode/repository/MyMusings
Round-trips: 1   Artifacts sent: 2  received: 0
Sync done, sent: 768  received: 415  ip: 74.208.146.128
Warning: The check-in was successful and is saved locally but you
         are not authorized to push the changes back to the server
         at https://chiselapp.com/user/LegacyCode/repository/MyMusings

Then you probably have an issue with the admin name in the repo (locally) and the admin name in the remote repo. I suppose there are several ways to fix it, but I've only tried the first.

  • (works) use a manual push (which the link above to the wiki) recommends if you have spotty internet connections or don't want to have every change synched to the remote
    • if you do this (or need to do this), then the format is something like the following line
    • fossil push https://USER:PASS@chiselapp.com/user/USER/repository/PROJECT
    • I did note (as seen below) that you don't need to supply the password. It will prompt you for it. Then it will ask you if you want it to remember the password. If so, then you're good. Otherwise, you'll need to enter it
  • (works) add user LegacyCode to the local repository (which is mentioned in part 7 of the wiki), but it has to have the same password as the remote
  • add the user you are using locally (i.e. logged in as - me, it was mike) to the remote repo
fossil push https://LegacyCode@chiselapp.com/user/LegacyCode/repository/MyMusings