Changeset 178
- Timestamp:
- 03/24/08 00:08:39 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cl-darcs/trunk/repo.lisp ΒΆ
r165 r178 168 168 ;; Of course, there are possible optimizations here, in particular 169 169 ;; regarding tags, but this will do for now. 170 (let ((ours-list (apply #'append (reverse ours))) 171 (theirs-list (apply #'append (reverse theirs)))) 172 (values (intersection ours-list theirs-list :test #'equalp) 173 (set-difference ours-list theirs-list :test #'equalp) 174 (set-difference theirs-list ours-list :test #'equalp)))) 170 (setf ours (apply #'append (reverse ours))) 171 (setf theirs (apply #'append (reverse theirs))) 172 (let (common-patches our-patches their-patches) 173 (loop 174 for ou on ours and th on theirs 175 while (equalp (car ou) (car th)) 176 collect (car ou) into common 177 finally 178 (setf common-patches common 179 our-patches ou 180 their-patches th)) 181 (values common-patches our-patches their-patches))) 182
Note: See TracChangeset
for help on using the changeset viewer.