coding methodoligies...control changes?

Discussion in 'Customization & add-ons' started by ronniead, Feb 18, 2009.

  1. ronniead

    ronniead Member

    Joined:
    Dec 20, 2007
    Messages:
    118
    Hey everyone,

    I've made quite a few tweaks to the amember code. The problem is I'm finding it hard to keep track of what I've changed! This is a problem because I want to upgrade at some stage, which makes it difficult. Most of the changes are to template files, although some are on php files.

    Can someone point me in the right direction to help me manage this mess! It just makes it difficult when upgrading...

    thanks
  2. jimjwright

    jimjwright New Member

    Joined:
    Sep 12, 2007
    Messages:
    162
    Hello,

    I typically add a comment line to either the .html or .php file with some unique
    string (i.e. JIMMY_MOD) in it.

    Then I can file grep (i.e. file search) a directory tree for this string and find the files that I have modified.
  3. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    510
    I am a technoid apart from doing as Jim said I also use UECompare, either I do a straight compare or a three-way can be quite exciting :)

    Larry
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    < blush >
  5. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    510
    Noorty noorty thoughts there kimosabe!

    BTW .. ewe been getting my email?

    Larry
  6. hittpubl

    hittpubl New Member

    Joined:
    Aug 22, 2006
    Messages:
    12
    Have you considered loading your site into CVS or SVN for code management? I have all my sites in CVS, when new releases come out I just build a patch to include my changes -- or can do differences between branches to see what I may have modified that needs to be in the new version. Great for templates and any custom work.

    Best,

    Justin
  7. ronniead

    ronniead Member

    Joined:
    Dec 20, 2007
    Messages:
    118
    thanks for all the tips guys.

    i did a quick search on google on cvs. is there some program you can recommend? what about for windows?

    and how would you build a patch to include your changes on a new release?

    thanks!
  8. hittpubl

    hittpubl New Member

    Joined:
    Aug 22, 2006
    Messages:
    12
    Ronniead,

    Head back out to Google. CVS or SVN are the best tools freely available to manage code. I use CVS on Linux, Solaris, and Windows -- there are complete guides on patching and merging branches.

    Best,

    Justin

Share This Page