test-subrepo-git.t: silence git output
authorEric Eisner <ede@mit.edu>
Mon, 06 Dec 2010 21:17:27 -0500
changeset 13091 8cecea387574
parent 13090 c73745762f33
child 13092 83986af605e5
test-subrepo-git.t: silence git output Older git versions have different ideas of what output is considered quiet, so the tests can be more version-blind.
tests/test-subrepo-git.t
--- a/tests/test-subrepo-git.t	Mon Dec 06 16:59:43 2010 -0600
+++ b/tests/test-subrepo-git.t	Mon Dec 06 21:17:27 2010 -0500
@@ -43,16 +43,13 @@
 record a new commit from upstream from a different branch
 
   $ cd ../gitroot
-  $ git checkout -b testing
-  Switched to a new branch 'testing'
+  $ git checkout -q -b testing
   $ echo gg >> g
   $ git commit -q -a -m gg
 
   $ cd ../t/s
-  $ git pull -q
-  $ git checkout -b testing origin/testing
-  Switched to a new branch 'testing'
-  Branch testing set up to track remote branch testing from origin.
+  $ git pull -q >/dev/null 2>/dev/null
+  $ git checkout -q -b testing origin/testing >/dev/null
 
   $ cd ..
   $ hg commit -m 'update git subrepo'
@@ -76,8 +73,7 @@
 
 update to previous substate
 
-  $ hg update 1
-  Switched to a new branch 'master'
+  $ hg update 1 2>/dev/null
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cat s/g
   g
@@ -132,7 +128,7 @@
 
 user b push changes
 
-  $ hg push
+  $ hg push 2>/dev/null
   pushing to $TESTTMP/t
   pushing branch testing of subrepo s
   searching for changes
@@ -152,8 +148,7 @@
   adding file changes
   added 1 changesets with 1 changes to 1 files (+1 heads)
   (run 'hg heads' to see heads, 'hg merge' to merge)
-  $ hg merge
-  Automatic merge went well; stopped before committing as requested
+  $ hg merge 2>/dev/null
   pulling subrepo s
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   (branch merge, don't forget to commit)
@@ -169,7 +164,7 @@
   path s
    source   ../gitroot
    revision f47b465e1bce645dbf37232a00574aa1546ca8d3
-  $ hg push
+  $ hg push 2>/dev/null
   pushing to $TESTTMP/t
   pushing branch testing of subrepo s
   searching for changes
@@ -187,7 +182,7 @@
   $ git commit -q -a -m ff
   $ echo fff >> f
   $ git commit -q -a -m fff
-  $ git push -q origin testing
+  $ git push origin testing 2>/dev/null
 
 make and push changes to hg without updating the subrepo
 
@@ -214,7 +209,7 @@
   $ cd ../ta
   $ hg pull -u -q
   $ cd s
-  $ git pull -q
+  $ git pull -q >/dev/null 2>/dev/null
   $ cd ..
   $ hg commit -m 'git upstream sync'
   committing subrepository $TESTTMP/ta/s
@@ -226,7 +221,7 @@
 
   $ cd ../tb
   $ hg pull -q
-  $ hg update
+  $ hg update 2>/dev/null
   pulling subrepo s
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ hg debugsub
@@ -254,8 +249,9 @@
 
 archive subrepos
 
-  $ cd ../t
-  $ hg archive --subrepos -r 5 ../archive
+  $ cd ../tc
+  $ hg pull -q
+  $ hg archive --subrepos -r 5 ../archive 2>/dev/null
   pulling subrepo s
   $ cd ../archive
   $ cat s/f