Commits

Pierre-Yves David committed 9508980 Merge

merge stable into default

  • Participants
  • Parent commits f6063ef, 8e1ca98
  • Branches default

Comments (0)

Files changed (1)

tests/test-stabilize-conflict.t

   > EOF
   $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext/evolve.py" >> $HGRCPATH
 
+  $ safesed() {
+  >   sed "$1" "$2" > `pwd`/sed.temp
+  >   mv `pwd`/sed.temp "$2"
+  > }
 
 create a simple repo
 
   $ hg gdown
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   [1] babar count up to ten
-  $ sed -i'' 's/huit/height/' babar
+  $ safesed 's/huit/eight/' babar
   $ hg diff
   diff -r 9d5daf8bd956 babar
   --- a/babar	Thu Jan 01 00:00:00 1970 +0000
    six
    sept
   -huit
-  +height
+  +eight
    neuf
    dix
   $ hg amend
   merging babar
   $ hg resolve -l
   $ hg log -G
-  @  changeset:   5:fd62611d0178
+  @  changeset:   5:800217d738cd
   |  tag:         tip
   |  user:        test
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     babar count up to fifteen
   |
-  o  changeset:   4:83066dedff55
+  o  changeset:   4:6bd654225435
   |  parent:      0:29ec1554cfaf
   |  user:        test
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   $ hg gdown
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   [4] babar count up to ten
-  $ sed -i'' 's/dix/ten/' babar
+  $ safesed 's/dix/ten/' babar
   $ hg diff
-  diff -r 83066dedff55 babar
+  diff -r 6bd654225435 babar
   --- a/babar	Thu Jan 01 00:00:00 1970 +0000
   +++ b/babar	* (glob)
   @@ -7,4 +7,4 @@
    sept
-   height
+   eight
    neuf
   -dix
   +ten
   $ hg resolve -l
   U babar
   $ hg log -G
-  @  changeset:   7:cc96f75eae0b
+  @  changeset:   7:3e191dd96e18
   |  tag:         tip
   |  parent:      0:29ec1554cfaf
   |  user:        test
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     babar count up to ten
   |
-  | @  changeset:   5:fd62611d0178
+  | @  changeset:   5:800217d738cd
   | |  user:        test
   | |  date:        Thu Jan 01 00:00:00 1970 +0000
   | |  summary:     babar count up to fifteen
   | |
-  | x  changeset:   4:83066dedff55
+  | x  changeset:   4:6bd654225435
   |/   parent:      0:29ec1554cfaf
   |    user:        test
   |    date:        Thu Jan 01 00:00:00 1970 +0000
 
   $ hg revert -r 5 --all
   reverting babar
-  $ sed -i'' 's/dix/ten/' babar
+  $ safesed 's/dix/ten/' babar
   $ hg resolve --all -m
   $ hg evolve --continue
   grafting revision 5
   $ hg resolve -l
   $ hg log -G
-  @  changeset:   8:ce7ee8fecf30
+  @  changeset:   8:92429cce7036
   |  tag:         tip
   |  user:        test
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     babar count up to fifteen
   |
-  o  changeset:   7:cc96f75eae0b
+  o  changeset:   7:3e191dd96e18
   |  parent:      0:29ec1554cfaf
   |  user:        test
   |  date:        Thu Jan 01 00:00:00 1970 +0000
 proper behavior with conflict using an external merge tools
 -----------------------------------------------------------
 
-  $ sed -i'' 's/merge=.*/merge=touch/' $HGRCPATH
-  $ sed -i'' 's/touch.gui=.*/touch.gui=false/' $HGRCPATH
+  $ safesed 's/merge=.*/merge=touch/' $HGRCPATH
+  $ safesed 's/touch.gui=.*/touch.gui=false/' $HGRCPATH
   $ hg gdown
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   [7] babar count up to ten
-  $ sed -i'' 's/ten/zehn/' babar
+  $ safesed 's/ten/zehn/' babar
   $ hg diff
-  diff -r cc96f75eae0b babar
+  diff -r 3e191dd96e18 babar
   --- a/babar	Thu Jan 01 00:00:00 1970 +0000
   +++ b/babar	* (glob)
   @@ -7,4 +7,4 @@
    sept
-   height
+   eight
    neuf
   -ten
   +zehn
   $ hg amend
   1 new unstable changesets
-  $ sed -i'' 's/interactive=.*/interactive=true/' $HGRCPATH
-  $ yes n 2> ../shutup | HGMERGE=touch hg evolve
+  $ safesed 's/interactive=.*/interactive=true/' $HGRCPATH
+  $ HGMERGE=touch hg evolve <<EOF
+  > n
+  > EOF
   move:[8] babar count up to fifteen
   atop:[10] babar count up to ten
   merging babar
   $ hg resolve -l
   U babar
   $ hg log -G
-  @  changeset:   10:02c637e61375
+  @  changeset:   10:a7fe09efd4a1
   |  tag:         tip
   |  parent:      0:29ec1554cfaf
   |  user:        test
   |  date:        Thu Jan 01 00:00:00 1970 +0000
   |  summary:     babar count up to ten
   |
-  | @  changeset:   8:ce7ee8fecf30
+  | @  changeset:   8:92429cce7036
   | |  user:        test
   | |  date:        Thu Jan 01 00:00:00 1970 +0000
   | |  summary:     babar count up to fifteen
   | |
-  | x  changeset:   7:cc96f75eae0b
+  | x  changeset:   7:3e191dd96e18
   |/   parent:      0:29ec1554cfaf
   |    user:        test
   |    date:        Thu Jan 01 00:00:00 1970 +0000
   cinq
   six
   sept
-  height
+  eight
   neuf
   zehn