Version Control


Closed Thread
Results 1 to 34 of 34

Thread: Version Control

Hybrid View

  1. #1
    Join Date
    Mar 2003
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Version control

    I think Picnaut is on the right track here.

    I have used a system similar to the checkin/checkout version control systems proposed by Michael St. Pierre before but they need personal discipline to make sure every change gets checked back in then out again so it gets its own version. For example you can check out a working version, spend days making many revisions (but not checking the file back) and then crash and lose several days work. The CVS has the 'official' version of days ago and all the subsequent steps are lost.

    What I need is an AUTOMATED way of making a separately named backup EVERY time a compile is done. That way there is always a short path back to the previous state. Picnaut seems to be near to this.

    I don't think it needs to highlight what the changes were, I usually write in the comments at the top of the file what I am attempting with each version. Yes there will be massive file expansion but these can be easily cleaned up at the end of the development session.

    Keep it up Picnaut!!

    Cheers
    Brian

  2. #2
    mytekcontrols's Avatar
    mytekcontrols Guest


    Did you find this post helpful? Yes | No

    Wink How many ways can you peel an orange?

    Hello Picnaut, Darrel, Brian, and Sougata!

    On my lunch hour I whipped up a little application that is able to extract the name and file path of the .BAS (or .PBP) file that is passed to the compiler by Microcode Studio.
    Sigh... If only my lunch hours proved as fruitfull <img src="http://www.picbasic.co.uk/forum/images/icons/icon7.gif">

    If Picnaut is willing to do it. Then I'll certainly give it a whirl. I like keeping things backed-up in multiple ways, so having Picnaut's application running along side the version control system works for me. Like Brian, I've used Version Control systems at places I've worked for, so I'm rather used to using them. And by having to make it a habit, I have no problem keeping things up-to-date. However, I also run an automatic back-up app in the background, which insures that I always have a copy of my work that is no older then about 10 minutes. It doesn't do version control, but it only backs-up something that has actually changed, thereby not consuming much processing power or time.

    Each method has its own benefits or strong points. It would be nice to have everything in one package, but then look what we do with PicBasic. We add some assembly code snippets, and some macros, all in an effort to make the best of all worlds.

    Hey Picnaut, if you don't mind me asking, what kind of work do you do for a living? It sounds like you are very well versed in the programming world.

    Oh and before I forget. Thank you Sougata for your kind words. It is appreciatted. It was rather interesting to figure out how to post the info, so that I could get the layout that was as presented (I'm sure Darrel can appreciate this aspect).

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Yes I can. And I must say, that's the best looking post I've seen around here. The images offset to either side, and the way the text flowed around them, very nice. You have definately "raised the bar". Which of course means, I'll have to jump over it.
    <br>
    DT

  4. #4


    Did you find this post helpful? Yes | No

    Talking

    Quote Originally Posted by mytekcontrols
    Hey Picnaut, if you don't mind me asking, what kind of work do you do for a living? It sounds like you are very well versed in the programming world.
    Hi,

    In regards to your question, I'm a hardware engineer.
    I'm actually just about to jump feet first into PCB layout. I'm taking a course in Philly in November.

    As for programming, from October 2001 to November 2004 I wrote automated test apps. That was a lot of fun! I got to write PC software that interfaced to a lot of other equipment (including PICs). I was able to do some embedded with that as well.

    Eventually I want to work for myself full-time, but that's a little way off yet. I need to get my skill set stronger. Currently, I'm reasonably good at several things, but, unfortunately, not great at any one thing.

    I see you're in California. I'm just north of the US border in Vancouver, BC, Canada.

    Anyway, take it easy and keep on Pic'n!

    ---> picnaut

  5. #5
    mytekcontrols's Avatar
    mytekcontrols Guest


    Did you find this post helpful? Yes | No

    Default

    Yes I can. And I must say, that's the best looking post I've seen around here. The images offset to either side, and the way the text flowed around them, very nice. You have definately "raised the bar". Which of course means, I'll have to jump over it.
    Darrel,
    I think you already jumped over it with some of your posts, like the LCD character generator for instance. But you did give me an idea. The only problem will be finding time to do it. Wouldn't it be cool to have a WYSIWG offline program tailored to this forum that would make creating better layouts an easy job, and not an exercise in embedding html and css via the text only editor provided. Something to think about <img src="http://www.picbasic.co.uk/forum/images/icons/icon12.gif">.

  6. #6


    Did you find this post helpful? Yes | No

    Cool Please participate in my poll

    Hello,

    If you haven't done so already, could you please participate in the following poll: http://www.picbasic.co.uk/forum/showthread.php?t=2694

    I've got the compile-detect and source-filepath-extraction portion of my program running well now. However, it only works when the compiler uses MPASM as its assembler. Also, if I hadn't mentioned before, it requires Microcode Studio to be running (you can't just compile from the command line).

    Anyway, I'm getting closer.

    Cheers!
    ---> picnaut

  7. #7


    Did you find this post helpful? Yes | No

    Thumbs up Project Update!!!

    OK.
    I'm almost there.
    I have a functional program that's working great.
    Unfortunately, you must be using MPASM as your assembler to use my auto updating program. Also, you need to be using MicroCode Studio Plus as your IDE (I may add support for other IDE's later).

    I'm calling it "Basic Backup" and I should have a beta version out later tonight or tomorrow.

    The only thing that you need to do before you use it, is check the box beside "Display full filename path in application title bar" in MicroCode Studio Plus. See: View > Editor Options... > General (tab)

    Then, if all goes well, you will only need to launch the "Basic Backup" executable once and it will launch each time you start Windows.

    Wish me luck!

    ---> picnaut

  8. #8


    Did you find this post helpful? Yes | No

    Talking Voila!

    Hello,

    Try this out and tell me what you think.

    It's got some minor bugs and needs work still, but it is functional.
    Simply start it up when you want to start coding.
    You can put a shortcut to it in your Windows Startup folder then you don't have to worry about it.
    I'll keep giving each executable the same filename so you can simply swap it out.
    You shouldn't need an install package.
    Simply unzip it and run the executable inside.
    It will run in the background and backup all your PBP files each time they're compiled.

    Make sure that you set your IDE to display the full filename in the application title bar (editor options).

    Also, it will ONLY work if you are using MPASM as your assembler.

    If you see any bugs, let me know and include any pertinent information (i.e. your operating system, memory, CPU speed, MCSP version, etc.).

    You may need to get the latest VB6 Runtime files.
    They can be downloaded from:
    http://download.microsoft.com/downlo...vbrun60sp5.exe

    However, don't download and install them if you've already tried the "Basic Backup" program and confirmed that it works. It would be handy to know if the runtime files are required or not.

    Cheers!
    Attached Files Attached Files
    Last edited by picnaut; - 2nd November 2005 at 16:47.
    ---> picnaut

  9. #9


    Did you find this post helpful? Yes | No

    Cool Voila!!!

    Hello Everyone,

    Well, I've finally done it, thanks to some help from Nuno.

    I've created a backup program that works with both PBP (running MCSP) and with Crownhill's PDS. I will try to add additional IDE support in the future.

    It will backup source code whether it's compiled with MPASM or the PBP assembler.

    You must have PBP installed in the default filepath though (c:\pbp\).

    Unfortunately, it doesn't backup include files at this time.

    However, I've been told that if you try and compile an include file on it's own, it will get backed up, even though the compile operation fails. I'm not sure if that's a bug or a feature.



    In any case, unless you're using include files that you plan on changing, this should work just fine.

    I will add a parser in the new year that will look for all of the includes in your "main" .BAS file and back them up when they've changed.

    Until then though, I'm off to the sunny Caribbean for 3 weeks of relaxation. So, no tech support until January 10th, ok.

    Have a great holiday everyone!

    Regards,
    Attached Files Attached Files
    ---> picnaut

  10. #10


    Did you find this post helpful? Yes | No

    Talking

    Quote Originally Posted by btaylor
    What I need is an AUTOMATED way of making a separately named backup EVERY time a compile is done. That way there is always a short path back to the previous state. Picnaut seems to be near to this.
    Yep!

    I've actually totally changed my approach.
    The program I have now simply runs in the background and checks every half second to see if something is being compiled. If it is, then the .BAS file or .PBP file get's saved in the associated backup folder with a date and time stamp as part of the file name.

    There will be absolutely no interfering with the PBP software files.

    I'm going to limit configuring options at first, but it will be really easy to use.

    With the executable file (which I hope to attach in the next day or two) you will only have to launch it once, and then it will run every time you start Windows. It will truly be set and forget software.

    Stay tuned!

    ---> picnaut

Similar Threads

  1. How do I give a radio control car autonomous control
    By Kenjones1935 in forum General
    Replies: 190
    Last Post: - 17th January 2010, 15:40
  2. No one-way approach to learning ir remote control frequencies
    By selbstdual in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd June 2007, 13:26
  3. How to set TMRO & TMR3 as Counter?.
    By NatureTech in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 18th May 2007, 08:52
  4. Allow better control of text in GUI
    By Archangel in forum PBP Wish List
    Replies: 1
    Last Post: - 19th February 2007, 13:25
  5. Control RC servo via Parallax Servo Control
    By cibotsan in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th September 2005, 08:18

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts