RESOLVED FIXED168816
Rename 'commit_parent' in 'commits' table to 'commit_previous_commit'.
https://bugs.webkit.org/show_bug.cgi?id=168816
Summary Rename 'commit_parent' in 'commits' table to 'commit_previous_commit'.
dewei_zhu
Reported 2017-02-23 19:16:26 PST
Rename 'commit_parent' in 'commits' table to 'commit_previous_commit'.
Attachments
Patch (13.49 KB, patch)
2017-02-23 19:21 PST, dewei_zhu
no flags
Patch for landing (16.77 KB, patch)
2017-02-23 22:39 PST, dewei_zhu
no flags
dewei_zhu
Comment 1 2017-02-23 19:21:20 PST
Chris Dumez
Comment 2 2017-02-23 19:25:00 PST
commit_previous_commit ? What does it mean?
Ryosuke Niwa
Comment 3 2017-02-23 19:45:16 PST
Comment on attachment 302630 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=302630&action=review r=me with previous_commit > previousCommit in JSON API. > Websites/perf.webkit.org/public/include/commit-log-fetcher.php:124 > - 'parent' => $commit_row['commit_parent'], > + 'previous_commit' => $commit_row['commit_previous_commit'], We should be using camelCase for JSON API. > Websites/perf.webkit.org/tools/sync-commits.py:234 > - 'parent': parent_hash, > + 'previous_commit': previous_hash, This should also be previousCommit.
Ryosuke Niwa
Comment 4 2017-02-23 19:47:26 PST
(In reply to comment #2) > commit_previous_commit ? What does it mean? In subversion, the previous commit of a revision X is X - 1. In git, the previous commit of a commit X is the parent commit. Because we're introducing the concept of a repository having a parent/owner repository, we're changing this column to be more semantically clear as to what it means. We can also call it preceding commit but that doesn't make much sense in Git world.
dewei_zhu
Comment 5 2017-02-23 22:39:51 PST
Created attachment 302644 [details] Patch for landing
WebKit Commit Bot
Comment 6 2017-02-23 23:19:36 PST
Comment on attachment 302644 [details] Patch for landing Clearing flags on attachment: 302644 Committed r212947: <http://trac.webkit.org/changeset/212947>
WebKit Commit Bot
Comment 7 2017-02-23 23:19:40 PST
All reviewed patches have been landed. Closing bug.
Ryosuke Niwa
Comment 8 2017-02-23 23:23:13 PST
Confirmed this works on a local copy of the production database on my machine.
Note You need to log in before you can comment on or make changes to this bug.