hgeditor
changeset 475 ab53998b9dcd
parent 350 b4e0e20646bb
child 484 934279f3ca53
--- a/hgeditor	Sat Jun 25 16:31:43 2005 -0800
+++ b/hgeditor	Sun Jun 26 11:33:16 2005 +0100
@@ -27,7 +27,12 @@
 
     echo -e "\n\nmanifest hash: $MANIFEST" >> "$T1"
     grep -vE '^(HG: manifest hash .*)?$' "$1" >> "$T1"
-    hg diff >> "$T2"
+    (
+        cd "`hg root`"
+        grep '^HG: changed' "$1" | cut -b 13- | while read changed; do
+            hg diff "$changed" >> "$T2"
+        done
+    )
 
     CHECKSUM=`md5sum "$T1"`
     $EDITOR "$T1" "$T2" || cleanup_exit $?