Changeset 12896
- Timestamp:
- Sep 29, 2009, 7:11:08 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/source/lib/compile-ccl.lisp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/lib/compile-ccl.lisp
r12634 r12896 526 526 (when full 527 527 (setq clean t kernel t reload t)) 528 (when update (update-ccl :verbose (not (eq update :quiet)))) 528 (when update 529 (multiple-value-bind (changed conflicts new-binaries) 530 (update-ccl :verbose (not (eq update :quiet))) 531 (declare (ignore changed conflicts)) 532 (when new-binaries 533 (format t "~&There are new bootstrapping binaries. Please restart 534 the lisp and run REBUILD-CCL again.") 535 (return-from rebuild-ccl nil)))) 529 536 (when (or clean force) 530 537 ;; for better bug reports... … … 643 650 (defun update-ccl (&key (verbose t)) 644 651 (let* ((changed ()) 652 (new-binaries ()) 645 653 (conflicts ())) 646 654 (with-output-to-string (out) … … 686 694 ;; repository versions. 687 695 (setq changed (if (or added deleted updated merged conflicts) t)) 688 689 696 (dolist (f binaries) 690 (when (member f conflicts :test #'string=) 691 (svn-revert f))) 697 (cond ((member f conflicts :test #'string=) 698 (svn-revert f) 699 (setq new-binaries t)) 700 ((or (member f updated :test #'string=) 701 (member f merged :test #'string=)) 702 (setq new-binaries t)))) 703 692 704 ;; If there are any remaining conflicts, offer 693 705 ;; to revert them. 694 706 (when conflicts 695 707 (with-preserved-working-directory () 696 (cerror "Discard local changes to these files (using 'svn revert' ."697 "'svn update' was unable to merge local changes to the following file~p with the updated versions:~{~&~s~ ~}" (length conflicts) conflicts)708 (cerror "Discard local changes to these files (using 'svn revert')." 709 "'svn update' was unable to merge local changes to the following file~p with the updated versions:~{~&~s~}" (length conflicts) conflicts) 698 710 (dolist (c (copy-list conflicts)) 699 711 (svn-revert c)))) … … 711 723 (show-changes "Updated files" updated) 712 724 (show-changes "Files with local changes, successfully merged" merged))))))))) 713 (values changed conflicts )))725 (values changed conflicts new-binaries))) 714 726 715 727 (defmacro with-preserved-working-directory ((&optional dir) &body body)
Note:
See TracChangeset
for help on using the changeset viewer.
