[Webkit-unassigned] [Bug 25456] New: resolve-ChangeLogs fails when run from anywhere other than the git root

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 28 12:48:39 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=25456

           Summary: resolve-ChangeLogs fails when run from anywhere other
                    than the git root
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: eric at webkit.org
                CC: ddkilzer at webkit.org, aroben at apple.com


resolve-ChangeLogs fails when run from anywhere other than the git root

1.  do a git rebase with some changelog conflicts
2.  cd into a sub directory (like WebCore)
3.  Run resolve-ChangeLogs

It fails with:
WARNING: LayoutTests/ChangeLog does not need merging.
WARNING: WebCore/ChangeLog does not need merging.

Even though if you were at the git root, it would succeed.

I believe the problem is in sub findUnmergedChangeLogs():

git diff -r --name-status --diff-filter=U -C -C -M                             
[~/Projects/WebKit/WebCore]
U       LayoutTests/ChangeLog
U       WebCore/ChangeLog

Notice how the returned paths are root-relative.

Evan Martin suggested we just add
cd $(git rev-parse --show-cdup)
to the top of the script, but I expect that would break:

resolve-ChangeLogs ChangeLog ../LayoutTests/ChangeLog
(not that we handle that case very well to begin with, since git doesn't like
..)

I looked at fixing this, but honestly I could not easily tell what half the
variables in the darn script meant.  $_[0] I can only assume is the first
argument?  And who knows what File::Spec->catfile($_[0], "ChangeLog"); is
supposed to do?  (Maybe that grabs the contents of the file?)


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list