• 0

    posted a message on svn update script
    Quote from dafire »

    I thougt about that but you never know how large the tree will get you check out...
    e.g. http://svn.wowace.com/branch/userx/libs/lib1 and http://svn.wowace.com/branch/userx/libs/lib2 it could automaticly changed to http://svn.wowace.com/branch/userx/libs ... but you don't know how many other libs you will get with that you don't need.

    I mentioned that already, reread... get a dirlist from the svn first, check if it contains only libs you need, and check out that dir. if it has extras, just hceck out all the libs you need instead.

    I wanted to keep the script simple .. so it works without adding any librarys that don't ship with activeperl


    I think svn ships with its perl bindings.

    next I want to do is to check which files changed in the repository since the last update and so speed up the whole thing ;)

    svn update does this more efficiently than this script can, I would think, except where we are checking externals...

    in that case, you'd still have to compare the revision of every local folder for that repository against the current revision on the server.
    Posted in: General Chat
  • 0

    posted a message on svn update script
    Quote from dafire »

    I added some optimizations and it should work now

    http://omikrons.de/svn_fetcher.pl



    instead of having an @externals, we should check all of the URLs in external.cache.txt for each of the highest shared external paths that contain only externaled items and check the root out, instead of checking out all of the contained externals. if an item has more than just the externaled stuff in it, only check out the individual ones. (for example, if we have one lib that uses PTTradeskillsEmbed, and nothing else uses pt, we don't want PTElements/*.)

    I had other ideas, but I forgot them.

    possibly SVN::Mirror and whatnot would be a good idea, as well.
    Posted in: General Chat
  • 0

    posted a message on svn update script
    Quote from dafire »


    hmm.. you are checking out externals to external/NAME but still trying to export from the old directory (external/path/.../name

    I did the structur for externals because there could be externals with the same name from different path in the branches ,9 .. but using File::Path is definitly a good idea :9


    I fixed it up some, at least that specific issue. we'll also need to check if something's a directory before checking it, and also checking if the parent directory has an external with the same name as the current one.
    Posted in: General Chat
  • 0

    posted a message on svn update script
    the create_svn_external_list_rec stuff doesn't quite work as intended.

    it seems you're trying to recurse through all directories and get a list of externals, but your $dir and $dfile are not getting set correctly.

    http://ohdarn.net/addons/update/update.pl is the version I'm working on.  seems to at least work now.
    http://ohdarn.net/addons/update/update.diff is a diff of dafire's version.

    planned: ability to provide a zip file download or curse, wowi, ui.worldofwar, etc url and have it auto-check for updates.
    Posted in: General Chat
  • To post a comment, please or register a new account.