[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy b480db9 055/133: Changed (when (not)) to (un
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy b480db9 055/133: Changed (when (not)) to (unless) |
Date: |
Sat, 27 Mar 2021 14:48:43 -0400 (EDT) |
branch: externals/ssh-deploy
commit b480db9d40ff71dabba020258f954a54115187ce
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Changed (when (not)) to (unless)
---
ssh-deploy-diff-mode.el | 2 +-
ssh-deploy.el | 20 ++++++++++----------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/ssh-deploy-diff-mode.el b/ssh-deploy-diff-mode.el
index 6b6f6eb..39c3d21 100644
--- a/ssh-deploy-diff-mode.el
+++ b/ssh-deploy-diff-mode.el
@@ -122,7 +122,7 @@
"Route valid ACTION to their functions."
(interactive)
(let ((parts (ssh-deploy-diff-mode--get-parts)))
- (when (not (eq parts nil))
+ (unless (eq parts nil)
(cond
((null parts) (message "Found nothing to do"))
((not (or (nth 0 parts)
diff --git a/ssh-deploy.el b/ssh-deploy.el
index a2cfa38..f5802f4 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -419,8 +419,8 @@
(if (fboundp 'ediff-same-file-contents)
(if (or (> force 0) (not (file-exists-p path-remote)) (and
(file-exists-p revision-path) (ediff-same-file-contents revision-path
path-remote)))
(progn
- (when (not (file-directory-p (file-name-directory
path-remote)))
- (make-directory (file-name-directory path-remote)
t))
+ (unless (file-directory-p (file-name-directory
path-remote))
+ (make-directory (file-name-directory path-remote) t))
(copy-file path-local path-remote t t t t)
(copy-file path-local revision-path t t t t)
(list 0 (format "Completed upload of file '%s'.
(asynchronously)" path-remote) path-local))
@@ -455,7 +455,7 @@
(and (file-exists-p revision-path)
(ediff-same-file-contents revision-path path-remote)))
(progn
(when ssh-deploy-verbose (message "Uploading file '%s' to
'%s'.. (synchronously)" path-local path-remote))
- (when (not (file-directory-p (file-name-directory
path-remote)))
+ (unless (file-directory-p (file-name-directory
path-remote))
(make-directory (file-name-directory path-remote) t))
(copy-file path-local path-remote t t t t)
(ssh-deploy-store-revision path-local revision-folder)
@@ -478,8 +478,8 @@
(let ((file-or-directory (not (file-directory-p path-remote))))
(if file-or-directory
(progn
- (when (not (file-directory-p (file-name-directory path-local)))
- (make-directory (file-name-directory path-local) t))
+ (unless (file-directory-p (file-name-directory path-local))
+ (make-directory (file-name-directory path-local) t))
(copy-file path-remote path-local t t t t)
(copy-file path-local revision-path t t t t))
(copy-directory path-remote path-local t t t))
@@ -500,8 +500,8 @@
(if file-or-directory
(progn
(when ssh-deploy-verbose (message "Downloading file '%s' to '%s'..
(synchronously)" path-remote path-local))
- (when (not (file-directory-p (file-name-directory path-local)))
- (make-directory (file-name-directory path-local) t))
+ (unless (file-directory-p (file-name-directory path-local))
+ (make-directory (file-name-directory path-local) t))
(copy-file path-remote path-local t t t t)
(ssh-deploy-store-revision path-local revision-folder)
(ssh-deploy--mode-line-set-status-and-update ssh-deploy--status-idle)
@@ -1014,7 +1014,7 @@
;;;###autoload
(defun ssh-deploy-store-revision (path &optional root)
"Store PATH in revision-folder ROOT."
- (when (not (file-directory-p path))
+ (unless (file-directory-p path)
(let* ((root (or root ssh-deploy-revision-folder))
(revision-path (ssh-deploy--get-revision-path path root)))
(when ssh-deploy-verbose (message "Storing revision of '%s' at '%s'.."
path revision-path))
@@ -1208,7 +1208,7 @@
(basename (file-name-nondirectory old-path-local))
(new-path-local-tmp (read-file-name "New file name:"
(file-name-directory old-path-local) basename nil basename))
(new-path-local (file-truename new-path-local-tmp)))
- (when (not (string= old-path-local new-path-local))
+ (unless (string= old-path-local new-path-local)
(ssh-deploy-rename old-path-local new-path-local root-local
ssh-deploy-root-remote ssh-deploy-async ssh-deploy-debug
ssh-deploy-exclude-list ssh-deploy-async-with-threads)))
(when (and (ssh-deploy--is-not-empty-string default-directory)
(file-exists-p default-directory))
@@ -1217,7 +1217,7 @@
(basename (file-name-nondirectory old-path-local))
(new-path-local-tmp (read-file-name "New directory name:"
(file-name-directory old-path-local) basename nil basename))
(new-path-local (file-truename new-path-local-tmp)))
- (when (not (string= old-path-local new-path-local))
+ (unless (string= old-path-local new-path-local)
(ssh-deploy-rename old-path-local new-path-local root-local
ssh-deploy-root-remote ssh-deploy-async ssh-deploy-debug
ssh-deploy-exclude-list ssh-deploy-async-with-threads)))))))
;;;###autoload
- [elpa] externals/ssh-deploy d9f61e1 071/133: Resolved byte-compilation with optional hydra feature, (continued)
- [elpa] externals/ssh-deploy d9f61e1 071/133: Resolved byte-compilation with optional hydra feature, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy f2cdb1a 077/133: Started on asynchronous tests, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 1073a7c 078/133: Replace more (require) with (autoload), Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy d992624 087/133: More work on asynchronous unit test of detecting remote changes, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 3223f69 094/133: Updated Travis file, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 9b5d3d2 111/133: Fixed bug wih conditonal logic for async file diff, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy bebeaa1 100/133: Updated version to 3.1, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy c4fd187 039/133: Deletion working from diff-mode, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 88300e3 043/133: Improved wording of remote change detection, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy e08b8bb 044/133: Improved documentation, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy b480db9 055/133: Changed (when (not)) to (unless),
Stefan Monnier <=
- [elpa] externals/ssh-deploy 31cb94d 060/133: Added compile command to makefile and added a .gitignore file, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy d03bd70 068/133: Added unit-test for uploads, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 95e823a 074/133: Fixed issue with byte-compilation warning in new unit tests, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy f233e2e 075/133: Removed checks for ediff-same-file-contents function since it's built-in in Emacs, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 336833f 076/133: Got (autoload) working inside asynchronous process, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy db73e5b 083/133: Started in new function for detecting remote changes that should be testable by unit tests, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 3a6c3ac 084/133: More work on making detect remote changes unit-testable, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 7d578da 088/133: Passing unit test for asynchronous change detection, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 20a87ab 099/133: Added async.el to travis test, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 761eb11 098/133: Updated Travis to use emacs version snapshot, 25.1 and 26.1 via EVM, Stefan Monnier, 2021/03/27