hg site extension
 
(Arne Babenhauserheide)
2011-10-20: add special message for uploads with --force.

add special message for uploads with --force.

diff --git a/static.py b/static.py
--- a/static.py
+++ b/static.py
@@ -400,7 +400,11 @@ def upload(ui, repo, target, ftpstring, 
 
 
                 if not serverfile in ftp.nlst(serverdir) or force:
-                    ui.status("uploading ", serverfile, " because it is not yet online.\n")
+                    if force:
+                        ui.status("uploading ", serverfile, " because I am forced to.\n")
+                    else:
+                        ui.status("uploading ", serverfile, " because it is not yet online.\n")
+
                     ftp.storbinary("STOR "+ serverfile, f)
                 else:
                     # reupload the file if the file on the server is older than the local file.