-
Notifications
You must be signed in to change notification settings - Fork 12
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
Proposal for revised branch naming #53
Comments
@yaoyuannnn @thcipriani What do you think? |
This is a nice idea! |
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
I think this would also address my concerns in #49 (comment). With your PR, does it mean that one could use |
Agreed
If you're asking if this allows having a cherry-pick of a given commit (with the same Change-Id) for two different target branches, the answer is yes. If you're asking something else, I'll need you to flesh out the scenario a bit more. |
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Other changes: * Removed unused MergeRequest._local_branch attribute. Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Other changes: * Removed unused MergeRequest._local_branch attribute. * Added tests to exercised merge_merge_requests Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Other changes: * Removed unused MergeRequest._local_branch attribute. * Added tests to exercised merge_merge_requests Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Other changes: * Removed unused MergeRequest._local_branch attribute. * Added tests to exercised merge_merge_requests Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Other changes: * Removed unused MergeRequest._local_branch attribute. * Added tests to exercise merge_merge_requests Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Other changes: * Removed unused MergeRequest._local_branch attribute. * Added tests to exercise merge_merge_requests Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Other changes: * Removed unused MergeRequest._local_branch attribute. * Added tests to exercise merge_merge_requests Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Other changes: * Removed unused MergeRequest._local_branch attribute. * Added tests to exercise merge_merge_requests Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
Previously gerritlab pushed commits to branches named after the local branch (or a name supplied on the command line). Now MR branches are named <final-target-branch-name>-<fullchangeid>. final-target-branch-name comes from target_branch in .gitreview, unless an override is supplied on the command line. Advantages: * The remote branch names never depend on the developer's local branch name. This means you can rename your local branch without worrying about a new set of MRs being created. * Using the full Change-Id deals with #39 Other changes: * Removed unused MergeRequest._local_branch attribute. * Added tests to exercise merge_merge_requests Closes: #53, #39 Change-Id: I732a738272927ef5af6ff00b0b21a033b0fe41b4
Right now gerritlab pushes commits to branches named after the local branch (or a name supplied on the command line). I suggest a new scheme for naming branches:
<final-target-branch-name>-<fullchangeid>
final-target-branch-name comes from
target_branch
in.gitreview
, unless an override is supplied on the command line.Advantages:
The text was updated successfully, but these errors were encountered: