Mercurial > hg-stable
changeset 11981:518b90d66fad
tests: unify test-merge8
author | Pradeepkumar Gayam <in3xes@gmail.com> |
---|---|
date | Wed, 18 Aug 2010 05:55:56 +0530 |
parents | c443e95d295b |
children | 56d9b73487ff |
files | tests/test-merge8 tests/test-merge8.out tests/test-merge8.t |
diffstat | 3 files changed, 27 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-merge8 Wed Aug 18 05:54:00 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -#!/bin/sh - -# Test for changeset ba7c74081861 -# (update dirstate correctly for non-branchmerge updates) -hg init a -cd a -echo a > a -hg add a -hg commit -m a -cd .. -hg clone a b -cd a -hg mv a b -hg commit -m move -echo b >> b -hg commit -m b -cd ../b -hg pull ../a -hg update
--- a/tests/test-merge8.out Wed Aug 18 05:54:00 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -updating to branch default -1 files updated, 0 files merged, 0 files removed, 0 files unresolved -pulling from ../a -searching for changes -adding changesets -adding manifests -adding file changes -added 2 changesets with 2 changes to 1 files -(run 'hg update' to get a working copy) -1 files updated, 0 files merged, 1 files removed, 0 files unresolved
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-merge8.t Wed Aug 18 05:55:56 2010 +0530 @@ -0,0 +1,27 @@ +Test for changeset ba7c74081861 +(update dirstate correctly for non-branchmerge updates) + $ hg init a + $ cd a + $ echo a > a + $ hg add a + $ hg commit -m a + $ cd .. + $ hg clone a b + updating to branch default + 1 files updated, 0 files merged, 0 files removed, 0 files unresolved + $ cd a + $ hg mv a b + $ hg commit -m move + $ echo b >> b + $ hg commit -m b + $ cd ../b + $ hg pull ../a + pulling from ../a + searching for changes + adding changesets + adding manifests + adding file changes + added 2 changesets with 2 changes to 1 files + (run 'hg update' to get a working copy) + $ hg update + 1 files updated, 0 files merged, 1 files removed, 0 files unresolved