changeset 8168:8766fee6f225

tests: removed redundant "-u test" from test scripts The tests are executed with a .hgrc file which adds "-u test" by default.
author Martin Geisler <mg@lazybytes.net>
date Sun, 26 Apr 2009 14:49:49 +0200
parents 6c82beaaa11a
children 6584953be356
files tests/test-bookmarks-rebase tests/test-branches tests/test-commit tests/test-commit-unresolved tests/test-merge10 tests/test-rebase-abort tests/test-rebase-check-restore tests/test-rebase-collapse tests/test-rebase-conflicts tests/test-rebase-interruptions tests/test-rebase-issue-noparam-single-rev tests/test-rebase-keep-branch tests/test-rebase-mq tests/test-rebase-mq-skip tests/test-rebase-parameters tests/test-rebase-pull tests/test-rebase-scenario-global
diffstat 17 files changed, 57 insertions(+), 57 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-bookmarks-rebase	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-bookmarks-rebase	Sun Apr 26 14:49:49 2009 +0200
@@ -14,17 +14,17 @@
 hg init
 
 echo 'a' > a
-hg ci -A -u test -m "0"
+hg ci -A -m "0"
 
 echo 'b' > b
-hg ci -A -u test -m "1"
+hg ci -A -m "1"
 
 hg up 0
 echo 'c' > c
-hg ci -A -u test -m "2"
+hg ci -A -m "2"
 
 echo 'd' > d
-hg ci -A -u test -m "3"
+hg ci -A -m "3"
 
 hg bookmark -r 1 one
 hg bookmark -r 3 two
--- a/tests/test-branches	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-branches	Sun Apr 26 14:49:49 2009 +0200
@@ -4,42 +4,42 @@
 cd a
 echo 'root' >root
 hg add root
-hg commit -d '0 0' -u test -m "Adding root node"
+hg commit -d '0 0' -m "Adding root node"
 
 echo 'a' >a
 hg add a
 hg branch a
-hg commit -d '1 0' -u test -m "Adding a branch"
+hg commit -d '1 0' -m "Adding a branch"
 
 hg branch q
 echo 'aa' >a
 hg branch -C
-hg commit -d '2 0' -u test -m "Adding to a branch"
+hg commit -d '2 0' -m "Adding to a branch"
 
 hg update -C 0
 echo 'b' >b
 hg add b
 hg branch b
-hg commit -d '2 0' -u test -m "Adding b branch"
+hg commit -d '2 0' -m "Adding b branch"
 
 echo 'bh1' >bh1
 hg add bh1
-hg commit -d '3 0' -u test -m "Adding b branch head 1"
+hg commit -d '3 0' -m "Adding b branch head 1"
 
 hg update -C 2
 echo 'bh2' >bh2
 hg add bh2
-hg commit -d '4 0' -u test -m "Adding b branch head 2"
+hg commit -d '4 0' -m "Adding b branch head 2"
 
 echo 'c' >c
 hg add c
 hg branch c
-hg commit -d '5 0' -u test -m "Adding c branch"
+hg commit -d '5 0' -m "Adding c branch"
 
 echo 'd' >d
 hg add d
 hg branch 'a branch name much longer than the default justification used by branches'
-hg commit -d '6 0' -u test -m "Adding d branch"
+hg commit -d '6 0' -m "Adding d branch"
 
 hg branches
 echo '-------'
@@ -55,24 +55,24 @@
 hg branches
 hg up -C b
 echo 'xxx1' >> b
-hg commit -d '7 0' -u test -m 'adding cset to branch b'
+hg commit -d '7 0' -m 'adding cset to branch b'
 hg up -C aee39cd168d0
 echo 'xxx2' >> b
-hg commit -d '8 0' -u test -m 'adding head to branch b'
+hg commit -d '8 0' -m 'adding head to branch b'
 echo 'xxx3' >> b
-hg commit -d '9 0' -u test -m 'adding another cset to branch b'
+hg commit -d '9 0' -m 'adding another cset to branch b'
 hg branches
 hg heads
 hg heads -a
-hg commit -d '9 0' -u test --close-branch -m 'prune bad branch'
+hg commit -d '9 0' --close-branch -m 'prune bad branch'
 hg branches -a
 hg up -C b
-hg commit -d '9 0' -u test --close-branch -m 'close this part branch too'
+hg commit -d '9 0' --close-branch -m 'close this part branch too'
 echo '--- b branch should be inactive'
 hg branches
 hg branches -a
 echo 'xxx4' >> b
-hg commit -d '9 0' -u test -m 'reopen branch with a change'
+hg commit -d '9 0' -m 'reopen branch with a change'
 echo '--- branch b is back in action'
 hg branches -a
 hg heads
--- a/tests/test-commit	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-commit	Sun Apr 26 14:49:49 2009 +0200
@@ -62,8 +62,8 @@
 mkdir bar
 echo bar > bar/bar
 hg add
-hg ci -d '1000000 0' -u test -m commit-subdir-1 foo
-hg ci -d '1000001 0' -u test -m commit-subdir-2 bar
+hg ci -d '1000000 0' -m commit-subdir-1 foo
+hg ci -d '1000001 0' -m commit-subdir-2 bar
 echo % subdir log 1
 hg log -v foo
 echo % subdir log 2
@@ -78,9 +78,9 @@
 mkdir foo
 echo foo content > foo/plain-file
 hg add foo/plain-file
-hg ci -d '1000000 0' -u test -m commit-foo-subdir foo
+hg ci -d '1000000 0' -m commit-foo-subdir foo
 echo modified foo content > foo/plain-file
-hg ci -d '2000000 0' -u test -m commit-foo-dot .
+hg ci -d '2000000 0' -m commit-foo-dot .
 echo % full log
 hg log -v
 echo % subdir log
--- a/tests/test-commit-unresolved	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-commit-unresolved	Sun Apr 26 14:49:49 2009 +0200
@@ -6,11 +6,11 @@
 addcommit () {
     echo $1 > $1
     hg add $1
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 commit () {
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 hg init a
--- a/tests/test-merge10	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-merge10	Sun Apr 26 14:49:49 2009 +0200
@@ -9,23 +9,23 @@
 mkdir -p testdir
 echo a > testdir/a
 hg add testdir/a
-hg commit -u test -d '1000000 0' -m a
+hg commit -d '1000000 0' -m a
 cd ..
 
 hg clone a b
 cd a
 echo alpha > testdir/a
-hg commit -u test -d '1000000 0' -m remote-change
+hg commit -d '1000000 0' -m remote-change
 cd ..
 
 cd b
 mkdir testdir/subdir
 hg mv testdir/a testdir/subdir/a
-hg commit -u test -d '1000000 0' -m move
+hg commit -d '1000000 0' -m move
 mkdir newdir
 echo beta > newdir/beta
 hg add newdir/beta
-hg commit -u test -d '1000000 0' -m local-addition
+hg commit -d '1000000 0' -m local-addition
 hg pull ../a
 hg up -C 2
 hg merge
--- a/tests/test-rebase-abort	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-rebase-abort	Sun Apr 26 14:49:49 2009 +0200
@@ -14,22 +14,22 @@
 cd a
 echo 'c1' >common
 hg add common
-hg commit -d '0 0' -u test -m "C1"
+hg commit -d '0 0' -m "C1"
 
 echo 'c2' >>common
-hg commit -d '1 0' -u test -m "C2"
+hg commit -d '1 0' -m "C2"
 
 echo 'c3' >>common
-hg commit -d '2 0' -u test -m "C3"
+hg commit -d '2 0' -m "C3"
 
 hg update -C 1
 echo 'l1' >>extra
 hg add extra
-hg commit -d '3 0' -u test -m "L1"
+hg commit -d '3 0' -m "L1"
 
 sed -e 's/c2/l2/' common > common.new
 mv common.new common
-hg commit -d '4 0' -u test -m "L2"
+hg commit -d '4 0' -m "L2"
 
 hg glog  --template '{rev}: {desc}\n'
 
--- a/tests/test-rebase-check-restore	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-rebase-check-restore	Sun Apr 26 14:49:49 2009 +0200
@@ -9,11 +9,11 @@
 addcommit () {
     echo $1 > $1
     hg add $1
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 commit () {
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 createrepo () {
--- a/tests/test-rebase-collapse	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-rebase-collapse	Sun Apr 26 14:49:49 2009 +0200
@@ -9,11 +9,11 @@
 addcommit () {
     echo $1 > $1
     hg add $1
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 commit () {
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 createrepo () {
--- a/tests/test-rebase-conflicts	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-rebase-conflicts	Sun Apr 26 14:49:49 2009 +0200
@@ -14,26 +14,26 @@
 cd a
 echo 'c1' >common
 hg add common
-hg commit -d '0 0' -u test -m "C1"
+hg commit -d '0 0' -m "C1"
 
 echo 'c2' >>common
-hg commit -d '1 0' -u test -m "C2"
+hg commit -d '1 0' -m "C2"
 
 echo 'c3' >>common
-hg commit -d '2 0' -u test -m "C3"
+hg commit -d '2 0' -m "C3"
 
 hg update -C 1
 echo 'l1' >>extra
 hg add extra
-hg commit -d '3 0' -u test -m "L1"
+hg commit -d '3 0' -m "L1"
 
 sed -e 's/c2/l2/' common > common.new
 mv common.new common
-hg commit -d '4 0' -u test -m "L2"
+hg commit -d '4 0' -m "L2"
 
 echo 'l3' >> extra2
 hg add extra2
-hg commit -d '5 0' -u test -m "L3"
+hg commit -d '5 0' -m "L3"
 
 hg glog  --template '{rev}: {desc}\n'
 
--- a/tests/test-rebase-interruptions	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-rebase-interruptions	Sun Apr 26 14:49:49 2009 +0200
@@ -9,11 +9,11 @@
 addcommit () {
     echo $1 > $1
     hg add $1
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 commit () {
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 createrepo () {
--- a/tests/test-rebase-issue-noparam-single-rev	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-rebase-issue-noparam-single-rev	Sun Apr 26 14:49:49 2009 +0200
@@ -7,7 +7,7 @@
 addcommit () {
     echo $1 > $1
     hg add $1
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 hg init a
--- a/tests/test-rebase-keep-branch	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-rebase-keep-branch	Sun Apr 26 14:49:49 2009 +0200
@@ -7,7 +7,7 @@
 addcommit () {
     echo $1 > $1
     hg add $1
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 hg init a
--- a/tests/test-rebase-mq	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-rebase-mq	Sun Apr 26 14:49:49 2009 +0200
@@ -22,10 +22,10 @@
 
 echo 'c1' > f
 hg add f
-hg commit -d '0 0' -u test -m "C1"
+hg commit -d '0 0' -m "C1"
 
 echo 'r1' > f
-hg commit -d '2 0' -u test -m "R1"
+hg commit -d '2 0' -m "R1"
 
 hg up 0
 hg qnew f.patch
--- a/tests/test-rebase-mq-skip	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-rebase-mq-skip	Sun Apr 26 14:49:49 2009 +0200
@@ -13,11 +13,11 @@
 
 echo 'c1' > c1
 hg add c1
-hg commit -d '0 0' -u test -m "C1"
+hg commit -d '0 0' -m "C1"
 
 echo 'r1' > r1
 hg add r1
-hg commit -d '1 0' -u test -m "R1"
+hg commit -d '1 0' -m "R1"
 
 hg up 0
 hg qnew p0.patch
--- a/tests/test-rebase-parameters	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-rebase-parameters	Sun Apr 26 14:49:49 2009 +0200
@@ -6,11 +6,11 @@
 addcommit () {
     echo $1 > $1
     hg add $1
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 commit () {
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 createrepo () {
--- a/tests/test-rebase-pull	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-rebase-pull	Sun Apr 26 14:49:49 2009 +0200
@@ -9,11 +9,11 @@
 addcommit () {
     echo $1 > $1
     hg add $1
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 commit () {
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 cd $BASE
--- a/tests/test-rebase-scenario-global	Sun Apr 26 14:29:02 2009 +0200
+++ b/tests/test-rebase-scenario-global	Sun Apr 26 14:49:49 2009 +0200
@@ -9,11 +9,11 @@
 addcommit () {
     echo $1 > $1
     hg add $1
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 commit () {
-    hg commit -d "${2} 0" -u test -m $1
+    hg commit -d "${2} 0" -m $1
 }
 
 createrepo () {