Mercurial > hg
view contrib/git-viz/hg-viz @ 536:c15b4bc0a11c
Refactor diffrevs/diffdir into changes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Refactor diffrevs/diffdir into changes
Add dirstate.changes to replace most of diffdir
Add localrepository.changes to replace diffrevs/diffdir
This code can now efficiently check for changes in single files, and
often without consulting the manifest. This should eventually make 'hg
diff Makefile' in a large project much faster.
This also fixes a bug where 'hg diff -r tip' failed to account for
files that had been added but not committed yet.
manifest hash: 20fde5d4b4cee49a76bcfe50f2dacf58b1f2258b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCxMxpywK+sNU5EO8RAhzOAJ9VLQJoC+hiRYQtTSPbDhXBEJfQZwCgpDx9
GAwQ9jZHNsgXckBfXNCkJV8=
=hMuc
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Thu, 30 Jun 2005 20:54:01 -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