File: hg.sh

package info (click to toggle)
commit-patch 2.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 172 kB
  • sloc: perl: 225; sh: 141; lisp: 141; makefile: 49
file content (13 lines) | stat: -rw-r--r-- 243 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
hg_init () {
    WD=$1
    mkdir -p "$WD"
    (cd "$WD" && hg init && (echo "[ui]"; echo "username=Chester McTester") > .hg/hgrc)

    export VC_DIFF="hg diff"
    export VC_RM="hg rm"
    export DIFF_PREFIX="a/"
}

hg_cleanup () {
    true
}