[One (M7) Android Development] dragonesdenano:
SVN Setup-Guide Tutorial By Jeryx

Step 1-3 is only for people who haven't set up the SVN yet, if you have already set up and just want to update to the newest revision, go to step 4...

You will need:

A PC running a newish version of Windows Tortoisesvn http://tortoisesvn.net/downloads.html, choose 32 or 64 bit depending on your OS An archive program, recommend winrar

1. Setting up folder structure.

Once you have TortoiseSVN set up and installed, browse to a directory where you would like your ROM to be stored Once your in that directory create a new folder and name it "HTC One" Go inside that folder and create two more folders, name one "sd-m7" and the other "sd-flashable"

You don't have to use these names, it just makes things less confusing if you do.

To give you an idea on what these folders will do, "sd-m7" is where you will download/update the rom/files to each time we make an update. Once you are up to date or at a revision you want to flash you then export the rom to "sd-flashable" ready to flash on your device.

2. Downloading the ROM

Once you have completed step one, it is time to download the ROM. Right click on the "sd-m7" folder and click "SVN Checkout".

On URL by repository put in this: https://sd-rom.googlecode.com/svn/trunk

On Checkout directory put in your folder on pc.

----OK----

If all done correctly the ROM should start downloading, this could take a while depending on your internet speed. This is the one and only time you will have to download the full sd rom magic.

Once it has finished you will be left with the rom structure inside the "sd-m7" folder. You can tell if everything has synced correctly as there will be a green tick on the folder icon.

3. Exporting and zipping

Open "sd-m7" and you will see the rom structure. Your instincts will probably tell you to add this to a zip and then just flash on your phone, but as this is the folder linked with the SVN, there are hidden files which we don't want to include when we put it in our rom.zip ready to flash. To get rid of these hidden files, all you need to do is right click "sd-m7" folder, go to "tortoiseSVN" then click "export".

This will open a new window asking you to choose where to extract to, simply locate your "sd-flashable" folder, click it, and click "select folder" to begin exporting.

Once the export has finished, your going to want to zip up the rom so you can flash it. Open "sd-flashable" and select all the folders and the boot.img If you have winrar installed click "add to archive" This will open a dialogue, all you need to do is set the the format to ".zip" not ".rar", choose a name for the zip and choose where to save it Once you have done this click ok to start the zipping Once finished this is your completed rom.zip, simply transfer this to your phones memory and flash in recovery.

4. Updating

If we make an update to our rom, svn users can stay up to date change by change, and only by downloading the modified files, not the entire rom everytime. To update to the latest revision all you need to do is right click on "sd-m7" and select "SVN Update"

This will update all the changed files to the latest version, keeping you up to date. Once the update is complete, you'll have to export the rom again (step 3) before zipping it up and flashing. Before you export though, make sure you delete the previous revision from "sd-flashable"

Once the old build is deleted, simply follow the "exporting" step again and you will be up to date with all the latest changes.

Have fun!:good: