Bazaar. See Bazaar in five minutes for a great start.
Whenever you save a file, run the $ bzr commit -m "Added first line of text"
command, and it's all taken care.
If you edit over FTP, make the FTP folder as a drive or folder, and bzr update
after the commit.