[Webkit-unassigned] [Bug 37489] Use pretty patch for confirming webkit-patch diffs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 14 09:39:18 PDT 2010


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





--- Comment #11 from Eric Seidel <eric at webkit.org>  2010-04-14 09:39:18 PST ---
Worrying about it later is OK.  I'm just ready to write the command as soon as
you and I agree how. :)  Or You can write it.  Either way, it should be 10
lines of python once we figure out how to keep the temp file around.

class PrettyDiff(AbstractDeclarativeCommand):
    name = "pretty-diff"
    help_text = "Open an HTML version of your current diff in a web browser."

    def execute(self, options, args, tool):
        diff = tool.scm().create_patch()
        pretty_diff = PrettyPatch().pretty_diff(diff)
        # Stuff it in a file somehow?
        User.open_url("file:///%s" % path_to_diff)

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



More information about the webkit-unassigned mailing list