You could do something like: for ($i = firstRevIn07; ($i <= lastRevIn07); $i++) { system("svn checkout -r $i http://symfony-repo-path-here/trunk $i"); $count[$i] = stream_get_contents(popen("diff -r -c $i /path/to/our/mystery/0.7.9/version | wc -l|")); } asort($count); foreach ($count as $version => difference) { echo("The version with the smallest difference according to diff is $version\n"); break; }
This should work pretty well if the previous developers didn't do something heinous like reformatting all of the text in all of the source files. -Tom On Mon, Feb 9, 2009 at 11:43 AM, Kevin Barsotti <kevin.barso...@tribaldawn.com> wrote: > > That is interesting. Do you know how such a version could have come to > reside in the system we use? Could this version perhaps have been a 0.7 > checkout that was modified by the prior developer, with the .9 perhaps > denoting some internal development version numbering? This is all > conjecture, I'm just trying to get a feel for how this system came to be > as it is. Do you know of an way I can get the closest legitimate > version to the one I have on-hand? > > Fabien Potencier wrote: >> Back at that time, 0.7.X releases were nightly builds from the symfony >> trunk. So, these versions were quite "unstable" in the sense that it was >> the same as working with the trunk, which was a moving target at that time. >> >> The .9 part of your version is weird as the version numbering schema was >> 0.7.X where X was the SVN revision. So, the 0.7.9 is not a valid symfony >> version. >> >> So, unfortunately, you won't be able to find this specific version >> anywhere as it never existed. >> >> HTH, >> Fabien >> >> -- >> Fabien Potencier >> Sensio CEO - symfony lead developer >> sensiolabs.com | symfony-project.org | fabien.potencier.org >> Tél: +33 1 40 99 80 80 >> >> >> Kevin Barsotti wrote: >> >>> Per an ongoing thread in the installation and setup forum, I am in the >>> process of upgrading a Symfony install from v0.7.9 (beta) to 1.0. >>> Issues are arising that have lead people to believe that the original >>> developers of the application here that employs the Symfony framework >>> may have altered some aspects of the Symfony core, for purposes I can >>> only guess at, as they left no documentation or any other indications of >>> their activities and motivations. >>> >>> It's been suggested that I should acquire a copy of the v0.7.x framework >>> and run some comparisons on the files contained therein to help narrow >>> down where changes may have been made, in order to ascertain the nature >>> of those changes. My attempts to check out such a copy from the SVN >>> repository have so far not been successful; I can find 1.x and 0.6.x >>> versions clearly noted, but I need a little help from you folks to >>> narrow down just what build has a stable/working version of 0.7.9 for my >>> ongoing forensic work. >>> >>> Symfony's a really cool system and I'm impressed with the features that >>> have opened up (such as the web debug UI, it's hugely advanced over the >>> version present with the 0.7.9 build) with the upgrade thus far. With >>> your help, I may even be able to run the application while enjoying >>> these new features! >>> >>> Oh, if anyone is feeling altruistic and wants to chime in and offer >>> wisdom and advice, this is the thread where I'm chronicling this upgrade >>> process. If anyone wants to offer their wisdom or advice, please do so! >>> >>> http://forum.symfony-project.org/index.php/t/18528 >>> >>> Thanks in advance! >>> >>> >> >> >> > >> >> >> > > -- > Kevin Barsotti > Operations Director > Tribal Dawn, LLC <www.tribaldawn.com> > 412.736.1357 > > > > > > -- Tom Boutell www.punkave.com www.boutell.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---