diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-12-27 18:09:11 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-12-27 19:13:57 +0100 |
commit | f9ca26405c53a6ad829e1bcf4f60c5a6bb4ae4d9 (patch) | |
tree | 79113c3ae290d08f9b322ca4feb67e7bcc59fb23 /gbp/scripts/pq.py | |
parent | 6fc0ec045b5cb4ad01a7583481d83a8552cd76a7 (diff) | |
download | git-buildpackage-f9ca26405c53a6ad829e1bcf4f60c5a6bb4ae4d9.tar.gz git-buildpackage-f9ca26405c53a6ad829e1bcf4f60c5a6bb4ae4d9.tar.bz2 git-buildpackage-f9ca26405c53a6ad829e1bcf4f60c5a6bb4ae4d9.zip |
GitRepository: Add num option to git_commits
to limit number of returned commits and fix path option to also accept a
list of paths instead of a string.
Diffstat (limited to 'gbp/scripts/pq.py')
-rw-r--r-- | gbp/scripts/pq.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/scripts/pq.py b/gbp/scripts/pq.py index 1852973d..dafb6973 100644 --- a/gbp/scripts/pq.py +++ b/gbp/scripts/pq.py @@ -215,7 +215,7 @@ def import_quilt_patches(repo, branch, series, tries, force): raise GbpError, ("Patch queue branch '%s'. already exists. Try 'rebase' instead." % pq_branch) - commits = repo.get_commits(options=['-%d' % tries], first_parent=True) + commits = repo.get_commits(num=tries, first_parent=True) # If we go back in history we have to safe our pq so we always try to apply # the latest one if len(commits) > 1: |