[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 4c44d4fae0 12/31: Tidy: (hyperdrive-mirror-file
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 4c44d4fae0 12/31: Tidy: (hyperdrive-mirror-files-and-urls) Reorder format |
Date: |
Fri, 3 Nov 2023 22:00:47 -0400 (EDT) |
branch: elpa/hyperdrive
commit 4c44d4fae07fa6d633e8fb4a963a2a58cec7cb12
Author: Joseph Turner <joseph@ushin.org>
Commit: Adam Porter <adam@alphapapa.net>
Tidy: (hyperdrive-mirror-files-and-urls) Reorder format
---
hyperdrive-mirror.el | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/hyperdrive-mirror.el b/hyperdrive-mirror.el
index fe68527f9b..fee2d9e976 100644
--- a/hyperdrive-mirror.el
+++ b/hyperdrive-mirror.el
@@ -40,7 +40,7 @@
(put 'hyperdrive-mirror-parent-entry 'permanent-local t)
(defvar-local hyperdrive-mirror-files-and-urls nil
- "List of lists like (FILE STATUS URL) for `hyperdrive-mirror-mode'.
+ "List of lists like (FILE URL STATUS) for `hyperdrive-mirror-mode'.
FILE is the local filepath of the file to be uploaded.
URL is \"hyper://\" URL where the file would be uploaded.
STATUS is one of:
@@ -63,7 +63,7 @@ STATUS is one of:
hyperdrive-mirror-keys "hyperdrive-mirror-key" "Grouping keys."))
(hyperdrive-mirror-define-key status ()
- (pcase-let ((`(,_file ,item-status ,_url) item))
+ (pcase-let ((`(,_file ,_url ,item-status) item))
(pcase-exhaustive item-status
(`new (propertize "New locally" 'face 'hyperdrive-mirror-new))
(`newer (propertize "Newer locally" 'face 'hyperdrive-mirror-newer))
@@ -82,11 +82,11 @@ STATUS is one of:
(taxy-magit-section-define-column-definer "hyperdrive-mirror"))
(hyperdrive-mirror-define-column "Local File" ()
- (pcase-let* ((`(,file ,_status ,_url) item))
+ (pcase-let* ((`(,file ,_url ,_status) item))
file))
(hyperdrive-mirror-define-column "Hyperdrive File" ()
- (pcase-let* ((`(,_file ,_status ,url) item))
+ (pcase-let* ((`(,_file ,url ,_status) item))
url))
(unless hyperdrive-mirror-columns
@@ -101,7 +101,7 @@ STATUS is one of:
FILES-AND-URLS is structured like `hyperdrive-mirror-files-and-urls'.
After uploading files, open PARENT-ENTRY."
(let* ((count 0)
- (upload-files-and-urls (cl-remove-if-not (pcase-lambda (`(,_file
,status ,_url))
+ (upload-files-and-urls (cl-remove-if-not (pcase-lambda (`(,_file
,_url ,status))
(or (eq status 'new) (eq
status 'newer)))
files-and-urls))
(progress-reporter
@@ -115,7 +115,7 @@ After uploading files, open PARENT-ENTRY."
(revert-buffer nil t))))))
(unless upload-files-and-urls
(hyperdrive-user-error "No new/newer files to upload"))
- (pcase-dolist (`(,file ,_status ,url) upload-files-and-urls)
+ (pcase-dolist (`(,file ,url ,_status) upload-files-and-urls)
(hyperdrive-upload-file file (hyperdrive-url-entry url)
:queue queue
;; TODO: Error handling (e.g. in case one or more files fails to
upload).
@@ -206,7 +206,7 @@ predicate and set NO-CONFIRM to t."
(hyperdrive-mirror--metadata-finally
buffer
(sort files-and-urls
- (pcase-lambda (`(,_ ,a-file ,_) `(,_
,b-file ,_))
+ (pcase-lambda (`(,a-file ,_ ,_) `(,b-file
,_ ,_))
(string< a-file b-file)))))))
(dolist (file files)
(let ((entry (hyperdrive-entry-create
@@ -221,7 +221,7 @@ predicate and set NO-CONFIRM to t."
((time-equal-p drive-mtime
local-mtime) 'same)
(t 'older)))
(url (hyperdrive-entry-url entry)))
- (push (list file status url) files-and-urls)
+ (push (list file url status) files-and-urls)
(update-progress (cl-incf num-filled) num-of)))
:else (lambda (plz-error)
(let ((status-code (plz-response-status
(plz-error-response plz-error))))
@@ -229,7 +229,7 @@ predicate and set NO-CONFIRM to t."
(404 ;; Entry doesn't exist: Set `status' to
`new'".
;; TODO: Consider moving
`hyperdrive-update-nonexistent-version-range' call...
(hyperdrive-update-nonexistent-version-range
entry)
- (push (list file 'new (hyperdrive-entry-url
entry)) files-and-urls)
+ (push (list file (hyperdrive-entry-url entry)
'new) files-and-urls)
(update-progress (cl-incf num-filled) num-of))
(_
(hyperdrive-error "Unable to get metadata for
URL \"%s\": %S"
@@ -303,8 +303,8 @@ KEYS should be a list of grouping keys, as in
;; taxy-key to `new', `newer', `older', or `same' and then
;; compare keys instead?
#'taxy-name)
- (taxy-mapcar (pcase-lambda (`(,file ,status ,url))
- (list (abbreviate-file-name file) status
url)))))
+ (taxy-mapcar (pcase-lambda (`(,file ,url ,status))
+ (list (abbreviate-file-name file) url
status)))))
(format-cons
(taxy-magit-section-format-items
hyperdrive-mirror-columns hyperdrive-mirror-column-formatters
- [nongnu] elpa/hyperdrive 74a701b164 30/31: Change: (hyperdrive--mirror) Kill mirror buffer after mirroring, (continued)
- [nongnu] elpa/hyperdrive 74a701b164 30/31: Change: (hyperdrive--mirror) Kill mirror buffer after mirroring, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive edd5eb8a06 15/31: Add/Change: (cl-defstruct hyperdrive-mirror-item), ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 35dbbd86f8 06/31: Change: (hyperdrive-mirror) Remove Status column, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 579d678da7 20/31: Change: Inherit from built-in faces for hyperdrive-mirror-* faces, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 2c38208541 23/31: Comment: Update TODO, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive de24c7fffe 31/31: Merge branch 'wip/send-last-modified-header', ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 21e55d694e 04/31: Change: (hyperdrive-mirror-files-and-urls) Use plain list, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 93520312ef 05/31: Tidy: (hyperdrive-mirror) Minor optimization, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive c47693ff5a 07/31: Tidy: (hyperdrive-mirror-define-key) Don't accept arguments, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 17f3cde160 10/31: Change: (hyperdrive-mirror--insert-taxy) Sort taxys, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 4c44d4fae0 12/31: Tidy: (hyperdrive-mirror-files-and-urls) Reorder format,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive e2a76f0b66 18/31: Fix: Abbreviate file name only for display in column, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 46f6852b47 24/31: Merge branch 'wip/mirror-taxy-magit-section', ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 8f1ab68519 26/31: Change: (hyperdrive-mirror) Show short key in URL column, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive a5af3356bd 28/31: Change: (hyperdrive-mirror) Compare timestamps to the second, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive a6cd445883 21/31: Tidy, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive e2e341cd14 27/31: Change: (hyperdrive-upload-file) Send Last-Modified header, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive b486684c64 19/31: Change: Show "Ignored" section last, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 01e15b03f9 25/31: Remove: (hyperdrive-mirror) Faces, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 9fd951a926 29/31: Fix: (hyperdrive-mirror--metadata-finally) Don't insert empty sections, ELPA Syncer, 2023/11/03