Changeset 45998 in webkit


Ignore:
Timestamp:
Jul 16, 2009 4:38:02 PM (15 years ago)
Author:
pkasting@chromium.org
Message:

2009-07-16 Peter Kasting <pkasting@google.com>

Reviewed by David Kilzer.

https://bugs.webkit.org/show_bug.cgi?id=27323
Improve support for WebKit checkouts hosted inside other checkouts
(possible for some ports, e.g. Chromium).

  • Scripts/svn-create-patch: Determine SVN root by looking for Repository Root string and aborting when it's missing or different than what we've already seen.
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r45994 r45998  
     12009-07-16  Peter Kasting  <pkasting@google.com>
     2
     3        Reviewed by David Kilzer.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=27323
     6        Improve support for WebKit checkouts hosted inside other checkouts
     7        (possible for some ports, e.g. Chromium).
     8
     9        * Scripts/svn-create-patch: Determine SVN root by looking for Repository
     10          Root string and aborting when it's missing or different than what
     11          we've already seen.
     12
    1132009-07-16  Peter Kasting  <pkasting@google.com>
    214
  • trunk/WebKitTools/Scripts/svn-create-patch

    r45993 r45998  
    471471    my $last = '';
    472472    my $path = '.';
    473     my $parent = '../';
     473    my $parent = '..';
    474474    my $devnull = File::Spec->devnull();
    475     my $exitCode;
     475    my $repositoryRoot;
    476476    while (1) {
    477         $exitCode = system("svn info $path 2> $devnull > $devnull")/256;
    478         last if $exitCode;
     477        my $thisRoot;
     478        open INFO, "svn info '$path' |" or die;
     479        while (<INFO>) {
     480            if (/^Repository Root: (.+)/) {
     481                $thisRoot = $1;
     482            }
     483        }
     484        close INFO;
     485
     486        # It's possible (e.g. for developers of some ports) to have a WebKit
     487        # checkout in a subdirectory of another checkout.  So abort if the
     488        # repository root suddenly changes.
     489        last if !$thisRoot;
     490        if (!$repositoryRoot) {
     491            $repositoryRoot = $thisRoot;
     492        }
     493        last if $thisRoot ne $repositoryRoot;
     494
    479495        $last = $path;
    480         $path = $parent . $path;
     496        $path = File::Spec->catdir($parent, $path);
    481497    }
    482498
Note: See TracChangeset for help on using the changeset viewer.