Added some source code management utilities.

parent 1bb6c67e
#!/bin/bash
#Get HG stuff.
hg clone https://bitbucket.org/hudson/magic-lantern
repo="$1"
if [[ -z $repo ]]; then repo="https://bitbucket.org/hudson/magic-lantern"; fi
if [[ $repo == "default" ]]; then repo="https://bitbucket.org/hudson/magic-lantern"; fi
if [[ $repo == "danne" ]]; then repo="https://bitbucket.org/Dannephoto/magic-lantern"; fi
branch="$2"
if [[ -z $branch ]]; then branch="unified"; fi
if [[ $branch == "danne" ]]; then branch="ml-dng-unified_3"; fi
#Remove old src
rm -rf magic-lantern
#Get HG stuff from custom repo.
hg clone "$repo"
cd magic-lantern
hg checkout unified
hg pull
hg pull && hg update "$branch"
#!/bin/bash
cd magic-lantern
hg pull -u
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment