PDA

View Full Version : Version control for PBP files/projects.



HenrikOlsson
- 16th October 2016, 13:06
Hi,
I'm interested to hear if anyone on the forum is using some sort of revsion control system, in general and for PBP specifically.

I know there's Git and that it's very popular in the open source community, but in my case it's really just me doing the development and Git seems a bit complicated. I prefer not to have to do a lot of command line stuff and for that reason I'm leaning towards Tortoise HG (using Mercurial). Anyone used it?

Am I overdoing it, should I just stick to making copies of the file(s), you know, NewProject_1_test2_old.pbp.....

/Henrik.

Demon
- 16th October 2016, 13:29
You're not overdoing it if you're getting benefits out of going that complicated.

I just copy a project to a higher version number, ProjectName V1.

If I'd go commercial, I'd go ProjectName V1.00, to have room for small updates.

Jerson
- 17th October 2016, 01:28
Take a look at fossil-scm.org It might be all you need even if you choose to scale up someday. I am just a happy user of fossil.

HenrikOlsson
- 17th October 2016, 19:27
Thanks Jerson,
Looked at Fossil, like the fact that it's self contained, don't like the command line interface but guess I could get used to it. See it had web ui so downloaded, "installed", fossil init test.fossil, fossil ui test.fossil, launced webbrowser pointing at local host/8080 but "page can't be displayed". Tried that on two machines (both W7 64bit) with same result. Tried disabling Windows Firewall, same thing. Tried fossil open test.fossil and then launching the ui again, same thing.

Any ideas whatI might be doing wrong?

Leaning towards Mercurial with Tortoise HG even though it's much more than I need.

/Henrik.

Jerson
- 18th October 2016, 01:59
I use fossil from the command line. Not very difficult to do. When you want to check the UI, just launch fossil from the command line with
fossil ui.

You get a nice user interface running in your browser. You can take a look at Jim Schimpfs book http://www.fossil-scm.org/schimpf-book/home

richard
- 18th October 2016, 04:11
Henrik try this, hats off to jerson for a great find

step 1 made a folder called fossil, copied fossil.exe into it (rather than put it in the windows path)

step 2 ran {fossil new fossil/pbp.fossil}
got this
C:\Users\rc>fossil new fossil/pbp.fossil
project-id: adf8f538c6ca487edd847aee786a6032e350646a
server-id: c4bdc7ffab0f9f76cc944f05946861656111e406
admin-user: rc (initial password is "c06c08")

step 3
copied some pbp files into this folder
ran {fossil add .}
got a messAGE saying files added
ran {fossil commit -m "initial values"}
ran {fossil ui } , it opens browser see the files

step 4

edited a file and saved it [in that folder]
ran {fossil update}
ran {fossil commit -m "updated values"}
ran {fossil ui } , it opens browser with commented update ; lovely

Jerson
- 18th October 2016, 07:45
Just in case you want to check some other simple but good obsolete programs

ZIP style backup tool ABAKT http://alternativeto.net/software/abakt/
and version backup http://www.versionbackup.sb-aw.com/download.html

Fossil supersedes them all

HenrikOlsson
- 18th October 2016, 17:51
Thanks Richard,
I managed to get it working. I think what I was missing was actually addind files to repository, it's not enough to just run inside in a folder with files in it (yes, I AM new to this...) I suspect that the webserver/ui didn't work because I pointed it to an empty (but initialized) repo though I'd expect some sort of message indicating what the problem was.

Thank you Jerson for pointing me to it, and thank you also for the link to the book! I'll take a look at that.
Despite being command line I think I'm going to give it a shot, it's small and self contained and that does appeal to me. Apparently there a GUI tool (called Fuel) for it too though it's not as nicely integrated into the Windows Explorer as Tortoise HG seems to be - for good and bad of course.

Thanks again guys, and if you have any hint, tips, tricks etc please post them!

/Henrik.

Jerson
- 19th October 2016, 05:53
The wiki page here shows how to get your feet wet and running in 5 minutes. This is for those who are curious about fossil

fiveminutes.wiki (http://fossil-scm.org/index.html/doc/trunk/www/fiveminutes.wiki)

You should try the compare revisions function in there.

Acetronics2
- 28th October 2016, 22:23
Hi, Henrik

you had lost or missed that one ???

boooooo .....

available from here ... http://www.astrosurf.com/soubie/serialisateur.htm

HenrikOlsson
- 29th October 2016, 07:50
Yes, I had missed that. Thanks for pointing it out.
I don't Think it does quite what I want though. I've played around a little bit (and read quite a bit) with Fossil and have decided to give it a go.

/Henrik.