Skip to content
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

Bug #915629: Allow --ignore-branch for 'gbp pq' #64

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Bug #915629: Allow --ignore-branch for 'gbp pq' #64

wants to merge 3 commits into from

Conversation

j1elo
Copy link

@j1elo j1elo commented Dec 7, 2018

  • 4c0f956 adds support for the import command. Is this a good way to do it?

  • 22fe91b is a cosmetic change just to generate shorter patch-queue/ branch names. With this, patch queue branches will be named such as patch-queue/03e0b41. Without this, pq branches would be named like patch-queue/03e0b4134690062fb7a358592f85df8c7ff31bbd. This is just a cosmetic commit, not very important given that patch-queue branches tend to be short lived. But it's added here just in case it's seen as a good idea.

Copy link
Owner

@agx agx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's gbp not bgp int the commit message of the first commit.

@@ -487,7 +487,8 @@ def main(argv):
except GitRepositoryError:
# Not being on any branch is OK with --ignore-branch
if options.ignore_branch:
current = repo.get_commits(num=1,
current = repo.get_commits(
num=1,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "branch name" is o.k. but did you verify e.g. "gbp switch" works with this? It would be good to have a test in tests/component/deb/test_pq.py that makes sure we don't break this behavior. Most of the functions called assume it's a branch we're working on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants