# HG changeset patch # User Abderrahim Kitouni # Date 1258999120 -3600 # Node ID d32590df65ef9b13be451e6b4725187df89a61a6 # Parent 5790ef2525110268ce499e3e49cdb8cb82445261 undo changes from ea0728d8cdc2 (GNU sed doesn't have a -E option) diff --git a/tests/test-empty-working-tree b/tests/test-empty-working-tree --- a/tests/test-empty-working-tree +++ b/tests/test-empty-working-tree @@ -24,7 +24,7 @@ cd gitrepo git init | python -c "import sys; print sys.stdin.read().replace('$(dirname $(pwd))/', '')" -git commit --allow-empty -m empty | sed -E 's/.*([0-9a-f]{7})[]:]/Commit \1/' +git commit --allow-empty -m empty >/dev/null 2>/dev/null || echo "git commit error" cd .. mkdir gitrepo2 diff --git a/tests/test-empty-working-tree.out b/tests/test-empty-working-tree.out --- a/tests/test-empty-working-tree.out +++ b/tests/test-empty-working-tree.out @@ -1,6 +1,5 @@ Initialized empty Git repository in gitrepo/.git/ -Commit 6782568 empty Initialized empty Git repository in gitrepo2/.git/ importing Hg objects into Git diff --git a/tests/test-hg-author b/tests/test-hg-author --- a/tests/test-hg-author +++ b/tests/test-hg-author @@ -26,7 +26,7 @@ { GIT_AUTHOR_DATE="2007-01-01 00:00:$count +0000" GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" - git commit "$@" >/dev/null 2>/dev/null || echo "hg commit error" + git commit "$@" >/dev/null 2>/dev/null || echo "git commit error" count=`expr $count + 1` } hgcommit() diff --git a/tests/test-hg-branch b/tests/test-hg-branch --- a/tests/test-hg-branch +++ b/tests/test-hg-branch @@ -26,7 +26,7 @@ { GIT_AUTHOR_DATE="2007-01-01 00:00:$count +0000" GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" - git commit "$@" >/dev/null 2>/dev/null || echo "hg commit error" + git commit "$@" >/dev/null 2>/dev/null || echo "git commit error" count=`expr $count + 1` } hgcommit() diff --git a/tests/test-hg-tags b/tests/test-hg-tags --- a/tests/test-hg-tags +++ b/tests/test-hg-tags @@ -26,7 +26,7 @@ { GIT_AUTHOR_DATE="2007-01-01 00:00:$count +0000" GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" - git commit "$@" >/dev/null 2>/dev/null || echo "hg commit error" + git commit "$@" >/dev/null 2>/dev/null || echo "git commit error" count=`expr $count + 1` } hgtag() diff --git a/tests/test-merge b/tests/test-merge --- a/tests/test-merge +++ b/tests/test-merge @@ -48,7 +48,7 @@ commit -m 'add gamma' # clean merge -git merge beta | sed 's/\.{3}//' +git merge beta cd .. mkdir gitrepo2 diff --git a/tests/test-octopus b/tests/test-octopus --- a/tests/test-octopus +++ b/tests/test-octopus @@ -53,7 +53,7 @@ git add delta commit -m 'add delta' -git merge branch1 branch2 | sed 's/\.{3}//' +git merge branch1 branch2 cd .. mkdir gitrepo2 diff --git a/tests/test-outgoing b/tests/test-outgoing --- a/tests/test-outgoing +++ b/tests/test-outgoing @@ -26,7 +26,7 @@ { GIT_AUTHOR_DATE="2007-01-01 00:00:$count +0000" GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" - git commit "$@" >/dev/null 2>/dev/null || echo "hg commit error" + git commit "$@" >/dev/null 2>/dev/null || echo "git commit error" count=`expr $count + 1` } hgcommit() diff --git a/tests/test-push b/tests/test-push --- a/tests/test-push +++ b/tests/test-push @@ -26,7 +26,7 @@ { GIT_AUTHOR_DATE="2007-01-01 00:00:$count +0000" GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE" - git commit "$@" >/dev/null 2>/dev/null || echo "hg commit error" + git commit "$@" >/dev/null 2>/dev/null || echo "git commit error" count=`expr $count + 1` } hgcommit() diff --git a/tests/test-tree-decomposition b/tests/test-tree-decomposition --- a/tests/test-tree-decomposition +++ b/tests/test-tree-decomposition @@ -36,11 +36,11 @@ mkdir d1 touch d1/f1 d1/f2 git add d1/f1 d1/f2 -git commit -m initial | sed -E 's/.*([0-9a-f]{7})[]:]/Commit \1/' +commit -m initial mkdir d2 git mv d1/f2 d2/f2 -git commit -m 'rename' | sed -E 's/.*([0-9a-f]{7})[]:]/Commit \1/' +commit -m 'rename' cd .. mkdir gitrepo2 diff --git a/tests/test-tree-decomposition.out b/tests/test-tree-decomposition.out --- a/tests/test-tree-decomposition.out +++ b/tests/test-tree-decomposition.out @@ -1,12 +1,5 @@ Initialized empty Git repository in gitrepo/.git/ -Commit 60fd61f initial - 0 files changed, 0 insertions(+), 0 deletions(-) - create mode 100644 d1/f1 - create mode 100644 d1/f2 -Commit a2e8665 rename - 1 files changed, 0 insertions(+), 0 deletions(-) - rename {d1 => d2}/f2 (100%) Initialized empty Git repository in gitrepo2/.git/ importing Hg objects into Git @@ -24,14 +17,14 @@ importing Hg objects into Git at: 0/2 creating and sending data -commit a2e8665d117167742ceb040f1669a73289d79ac8 +commit 7d84da95f2caf7a65833ae580fe5a08a0c3cb6b2 Author: test -Date: Mon Jan 1 00:00:00 2007 +0000 +Date: Mon Jan 1 00:00:11 2007 +0000 rename -commit 60fd61fbaca983e6d0ee911668ef7547abbf720c +commit 48e6424b6487f2a16e901f72fe52168b40278f5b Author: test -Date: Mon Jan 1 00:00:00 2007 +0000 +Date: Mon Jan 1 00:00:10 2007 +0000 initial