diff options
| author | Glenn Morris | 2013-04-24 01:13:52 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-04-24 01:13:52 -0700 |
| commit | 3b8fe7527bba99adb7901bce07b7b124c3ce9726 (patch) | |
| tree | 8f612aaf329736301ae309384000a5e9825e4271 | |
| parent | 90b4237a6b2eda8d8af659e6b9928ecf6ac166d8 (diff) | |
| download | emacs-3b8fe7527bba99adb7901bce07b7b124c3ce9726.tar.gz emacs-3b8fe7527bba99adb7901bce07b7b124c3ce9726.zip | |
* vc/vc-bzr.el (vc-bzr-print-log): Improve START-REVISION with LIMIT != 1.
Fixes: debbugs:14168
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/vc/vc-bzr.el | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dd562cd4eb4..0fb21997226 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | 2013-04-24 Glenn Morris <rgm@gnu.org> | 1 | 2013-04-24 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * vc/vc-bzr.el (vc-bzr-print-log): | ||
| 3 | * vc/vc-hg.el (vc-hg-print-log): | 4 | * vc/vc-hg.el (vc-hg-print-log): |
| 4 | * vc/vc-svn.el (vc-svn-print-log): | 5 | * vc/vc-svn.el (vc-svn-print-log): |
| 5 | Fix START-REVISION with LIMIT != 1. (Bug#14168) | 6 | Fix START-REVISION with LIMIT != 1. (Bug#14168) |
diff --git a/lisp/vc/vc-bzr.el b/lisp/vc/vc-bzr.el index d01fcede4be..06942ad283c 100644 --- a/lisp/vc/vc-bzr.el +++ b/lisp/vc/vc-bzr.el | |||
| @@ -712,6 +712,15 @@ If LIMIT is non-nil, show no more than this many entries." | |||
| 712 | (when shortlog '("--line")) | 712 | (when shortlog '("--line")) |
| 713 | (when start-revision (list (format "-r..%s" start-revision))) | 713 | (when start-revision (list (format "-r..%s" start-revision))) |
| 714 | (when limit (list "-l" (format "%s" limit))) | 714 | (when limit (list "-l" (format "%s" limit))) |
| 715 | ;; This is to remove --forward, if it has been added by an alias. | ||
| 716 | ;; There is no sensible way to combine --limit and --forward, | ||
| 717 | ;; and it breaks the meaning of START-REVISION as the | ||
| 718 | ;; _newest_ revision. See bug#14168. | ||
| 719 | ;; FIXME There may be other alias stuff we want to keep. | ||
| 720 | ;; Is there a way to just suppress --forward? | ||
| 721 | ;; As of 2013/4 the only caller uses limit = 1, so it does | ||
| 722 | ;; not matter much. | ||
| 723 | (and start-revision limit (> limit 1) '("--no-aliases")) | ||
| 715 | (if (stringp vc-bzr-log-switches) | 724 | (if (stringp vc-bzr-log-switches) |
| 716 | (list vc-bzr-log-switches) | 725 | (list vc-bzr-log-switches) |
| 717 | vc-bzr-log-switches))))) | 726 | vc-bzr-log-switches))))) |