(Arne Babenhauserheide)
2011-10-20: FIX: timestamp creating missed the seconds. FIX: timestamp creating missed the seconds.
diff --git a/static.py b/static.py --- a/static.py +++ b/static.py @@ -385,12 +385,11 @@ def upload(ui, repo, target, ftpstring): if " MDTM" in ftpfeatures.splitlines(): ftpmtime = ftp.sendcmd("MDTM " + serverfile).split()[1] localmtime = os.stat(localfile).st_mtime - localmtimestr = datetime.datetime.utcfromtimestamp(localmtime).strftime("%Y%m%d%H%M") - print ftpmtime, localmtimestr + localmtimestr = datetime.datetime.utcfromtimestamp(localmtime).strftime("%Y%m%d%H%M%S") newer = int(localmtimestr) > int(ftpmtime) - if newer: - ui.status("uploading ", serverfile, " because it is newer than the file on the FTP server.\n") - ftp.storbinary("STOR "+ serverfile, f) + if newer: + ui.status("uploading ", serverfile, " because it is newer than the file on the FTP server.\n") + ftp.storbinary("STOR "+ serverfile, f)