Previously i've been taking backups using zip-files every now and then by just right-clicking my whole project folder, send to zip, and add a small message at the end of the filename.
But now i've discovered how good version control is so i want to move all my old zip-backups into the current repository. Best would be if i could commit it in "before" the initial commit (which is the same as my final zip-file) somehow so it looks like it was a sequential development. But adding it just as a branch wouldn't be too bad either, better than having it in zip-files anyway.
My old backup is about 100 zip-files, with very consistent filenames: Backup Date Message.zip
I guess i could quite easily create a bat-file that unzips, commits, deletes and repeats but i'm wondering if there is any better way of doing this. Especially the "insert before" part 开发者_StackOverflow中文版since i'm not exactly a master in mercurial yet. I almost exclusively use TortoiseHG, not the command-line.
I'd think you would need to script it. Normally though not everything in a directory archive goes to revision control (generated and intermediate files don't). You could script something that looks for your "interesting" extensions, and just saves those in revision control.
Sounds like an opportunity if you want to learn some perl or python. Otherwise, mark today as your start in RCS and forgetaboutit.
精彩评论