-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix some basic lint issues in vitess/py, add effective_caller_id to vtgate_cursor interfaces. #1026
Conversation
This size of the g4 lint -v third_party/golang/vitess/py output from 1404 lines to 327.
@michael-berlin I don't understand "This branch has conflicts that must be resolved". What are these conflicts? |
It means your change has conflict with current master branch. Do a "git rebase master" to resolve conflict locally. It is pretty much like you and someone else touches same file and the other guy has merged change into master first, so you have to accommodate the change in your branch... |
I haven't figured it out. I might abandon this and make another branch and pull request. |
Noo, don't do that :-) I recommend that you merge the master into your feature branch at this point. Therefore, do as follows:
Let me know how that goes. You don't need to use the stash when you commit all pending changes before switching branches. Regarding rebase vs. merge: This site seems to have good explanations for it. I recommend to read it: https://www.atlassian.com/git/tutorials/merging-vs-rebasing/conceptual-overview For your workflow, I would say the following:
|
"""Base class for database classes and decorator for db method. | ||
|
||
The base class DBObjectBase is the base class for all other database | ||
base classes. It has methods for common database operations like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Text has double spaces after the period.
Please change them to a single space.
…e_caller_id change.
$ git remote -v Notice that I changed my origin to fetch from youtube/vitess.git and push to dumbunny/vitess.git. This seems to have unstuck me, but it is different from @michael-berlin's setup. |
@dumbunny Yes, please change your remote setup such that origin fetch points to your "dumbunny" fork again. You were both right that the changes for master were not pulled from "upstream", but from "origin". Jeff's instructions can be simplified by letting master track the official repo and not the fork:
You can see the correct tracking in branch -vv
From now on, you can always omit "upstream" when pulling the master:
|
With the instructions in my last comment, you can omit "upstream" from a "git pull" while in "master". With the instructions below, we also achieve that a "git push" no longer requires to specify a remote target.
The first command ensures that "git push" will always use the "origin" remote when nothing else is specified. This is great for two reasons:
For example:
At this point, "feature1" will be pushed to your fork ("origin" remote target) and not the "upstream" remote. When you need to make changes, you would just run For completeness: The second command |
Merging. |
Fix some basic lint issues in vitess/py, add effective_caller_id to vtgate_cursor interfaces.
(all edits addressed). |
…o#1026) Signed-off-by: Manan Gupta <manan@planetscale.com> Signed-off-by: Manan Gupta <manan@planetscale.com> Signed-off-by: Manan Gupta <manan@planetscale.com>
@michael-berlin Lint-compliance changes, from dumbunny/vitess branch lint0 to youtube/vitess master.