diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-bzr.el | 50 |
2 files changed, 37 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 96f210a2ba8..09a5d256464 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-02-01 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * vc-bzr.el (vc-bzr-dir-extra-headers): Add a header when a | ||
| 4 | pending merge is detected. | ||
| 5 | |||
| 1 | 2010-01-31 Juri Linkov <juri@jurta.org> | 6 | 2010-01-31 Juri Linkov <juri@jurta.org> |
| 2 | 7 | ||
| 3 | * progmodes/grep.el (zrgrep): Call `grep-compute-defaults' at the | 8 | * progmodes/grep.el (zrgrep): Call `grep-compute-defaults' at the |
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el index 5f01d297971..1b0206ce70c 100644 --- a/lisp/vc-bzr.el +++ b/lisp/vc-bzr.el | |||
| @@ -794,6 +794,12 @@ stream. Standard error output is discarded." | |||
| 794 | (buffer-string))) | 794 | (buffer-string))) |
| 795 | (shelve (vc-bzr-shelve-list)) | 795 | (shelve (vc-bzr-shelve-list)) |
| 796 | (shelve-help-echo "Use M-x vc-bzr-shelve to create shelves") | 796 | (shelve-help-echo "Use M-x vc-bzr-shelve to create shelves") |
| 797 | (root-dir (vc-bzr-root dir)) | ||
| 798 | (pending-merge | ||
| 799 | (file-exists-p | ||
| 800 | (expand-file-name ".bzr/checkout/merge-hashes" root-dir))) | ||
| 801 | (pending-merge-help-echo | ||
| 802 | (format "A merge has been performed.\nA commit from the top-level directory (%s)\nis required before being able to check in anything else" root-dir)) | ||
| 797 | (light-checkout | 803 | (light-checkout |
| 798 | (when (string-match ".+light checkout root: \\(.+\\)$" str) | 804 | (when (string-match ".+light checkout root: \\(.+\\)$" str) |
| 799 | (match-string 1 str))) | 805 | (match-string 1 str))) |
| @@ -819,24 +825,32 @@ stream. Standard error output is discarded." | |||
| 819 | (propertize "Checkout of branch : " 'face 'font-lock-type-face) | 825 | (propertize "Checkout of branch : " 'face 'font-lock-type-face) |
| 820 | (propertize light-checkout-branch 'face 'font-lock-variable-name-face) | 826 | (propertize light-checkout-branch 'face 'font-lock-variable-name-face) |
| 821 | "\n")) | 827 | "\n")) |
| 822 | (if shelve | 828 | (when pending-merge |
| 823 | (concat | 829 | (concat |
| 824 | (propertize "Shelves :\n" 'face 'font-lock-type-face | 830 | (propertize "Warning : " 'face 'font-lock-warning-face |
| 825 | 'help-echo shelve-help-echo) | 831 | 'help-echo pending-merge-help-echo) |
| 826 | (mapconcat | 832 | (propertize "Pending merges, commit recommended before any other action" |
| 827 | (lambda (x) | 833 | 'help-echo pending-merge-help-echo |
| 828 | (propertize x | 834 | 'face 'font-lock-warning-face) |
| 829 | 'face 'font-lock-variable-name-face | 835 | "\n")) |
| 830 | 'mouse-face 'highlight | 836 | (if shelve |
| 831 | 'help-echo "mouse-3: Show shelve menu\nP: Apply and remove shelf (pop)\nC-k: Delete shelf" | 837 | (concat |
| 832 | 'keymap vc-bzr-shelve-map)) | 838 | (propertize "Shelves :\n" 'face 'font-lock-type-face |
| 833 | shelve "\n")) | 839 | 'help-echo shelve-help-echo) |
| 834 | (concat | 840 | (mapconcat |
| 835 | (propertize "Shelves : " 'face 'font-lock-type-face | 841 | (lambda (x) |
| 836 | 'help-echo shelve-help-echo) | 842 | (propertize x |
| 837 | (propertize "No shelved changes" | 843 | 'face 'font-lock-variable-name-face |
| 838 | 'help-echo shelve-help-echo | 844 | 'mouse-face 'highlight |
| 839 | 'face 'font-lock-variable-name-face)))))) | 845 | 'help-echo "mouse-3: Show shelve menu\nA: Apply and keep shelf\nP: Apply and remove shelf (pop)\nS: Snapshot to a shelf\nC-k: Delete shelf" |
| 846 | 'keymap vc-bzr-shelve-map)) | ||
| 847 | shelve "\n")) | ||
| 848 | (concat | ||
| 849 | (propertize "Shelves : " 'face 'font-lock-type-face | ||
| 850 | 'help-echo shelve-help-echo) | ||
| 851 | (propertize "No shelved changes" | ||
| 852 | 'help-echo shelve-help-echo | ||
| 853 | 'face 'font-lock-variable-name-face)))))) | ||
| 840 | 854 | ||
| 841 | (defun vc-bzr-shelve (name) | 855 | (defun vc-bzr-shelve (name) |
| 842 | "Create a shelve." | 856 | "Create a shelve." |