view contrib/git-viz/hg-viz @ 412:40cfa2d0c088

[PATCH]: Typo in localrepository.update -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH]: Typo in localrepository.update From: Goffredo Baroncelli <kreijack@libero.it> I think that there is an error in the method update() of the class localrepository. The variable 'm2n' was used instead of 'man'; so the parent2 flags is computed instead of the ancestor flags. manifest hash: dc11810367615245c4b39660d135ab3c0e71b85d -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCuNWpywK+sNU5EO8RAv9ZAKCxwbd242xZQ1CCrW2WDdQ4gclKtACghXYl 7j1YTRpINItwdXzak3cBS60= =+Tf8 -----END PGP SIGNATURE-----
author mpm@selenic.com
date Tue, 21 Jun 2005 19:06:17 -0800
parents d8abb687d501
children
line wrap: on
line source

#!/bin/sh

set -e

if test x"$1" != x ; then
  cd $1
fi

if [ ! -d ".hg" ]; then
    echo "${1:-.} is not a mercurial repository" 1>&2
    echo "Aborting" 1>&2
    exit 1
fi
if [ ! -d ".git" ]; then
    mkdir -v ".git"
fi
if [ -e ".git/HEAD" ]; then
    if [ ! -e ".git/HEAD.hg-viz-save" ]; then
        mv -v ".git/HEAD" ".git/HEAD.hg-viz-save"
    else
        rm -vf ".git/HEAD"
    fi
fi
hg history | head -1 | awk -F: '{print $3}' > .git/HEAD
git-viz