Mercurial > hg-stable
comparison tests/test-rebase-inmemory.t @ 35396:dd11df900f7f
rebase: replace --inmemory flag with rebase.experimental.inmemory config
Differential Revision: https://phab.mercurial-scm.org/D1666
author | Phil Cohen <phillco@fb.com> |
---|---|
date | Mon, 11 Dec 2017 22:16:13 -0800 |
parents | b9bdee046cc2 |
children | 795eb53f1d3e |
comparison
equal
deleted
inserted
replaced
35395:c0c6df81c9bb | 35396:dd11df900f7f |
---|---|
2 $ cat << EOF >> $HGRCPATH | 2 $ cat << EOF >> $HGRCPATH |
3 > [extensions] | 3 > [extensions] |
4 > amend= | 4 > amend= |
5 > rebase= | 5 > rebase= |
6 > debugdrawdag=$TESTDIR/drawdag.py | 6 > debugdrawdag=$TESTDIR/drawdag.py |
7 > [rebase] | |
8 > experimental.inmemory=1 | |
7 > [diff] | 9 > [diff] |
8 > git=1 | 10 > git=1 |
9 > [alias] | 11 > [alias] |
10 > tglog = log -G --template "{rev}: {node|short} '{desc}'\n" | 12 > tglog = log -G --template "{rev}: {node|short} '{desc}'\n" |
11 > EOF | 13 > EOF |
33 | 35 |
34 $ hg cat -r 3 c | 36 $ hg cat -r 3 c |
35 c (no-eol) | 37 c (no-eol) |
36 $ hg cat -r 2 b | 38 $ hg cat -r 2 b |
37 b (no-eol) | 39 b (no-eol) |
38 $ hg rebase --inmemory --debug -r b -d c | grep rebasing | 40 $ hg rebase --debug -r b -d c | grep rebasing |
39 rebasing in-memory | 41 rebasing in-memory |
40 rebasing 2:db0e82a16a62 "b" (b) | 42 rebasing 2:db0e82a16a62 "b" (b) |
41 $ hg tglog | 43 $ hg tglog |
42 o 3: ca58782ad1e4 'b' | 44 o 3: ca58782ad1e4 'b' |
43 | | 45 | |
92 c (no-eol) | 94 c (no-eol) |
93 $ hg cat -r 2 b | 95 $ hg cat -r 2 b |
94 b (no-eol) | 96 b (no-eol) |
95 $ hg cat -r 3 e | 97 $ hg cat -r 3 e |
96 somefile (no-eol) | 98 somefile (no-eol) |
97 $ hg rebase --inmemory --debug -s b -d a | grep rebasing | 99 $ hg rebase --debug -s b -d a | grep rebasing |
98 rebasing in-memory | 100 rebasing in-memory |
99 rebasing 2:db0e82a16a62 "b" (b) | 101 rebasing 2:db0e82a16a62 "b" (b) |
100 $ hg tglog | 102 $ hg tglog |
101 o 3: fc055c3b4d33 'b' | 103 o 3: fc055c3b4d33 'b' |
102 | | 104 | |
108 | 110 |
109 $ hg cat -r 2 c | 111 $ hg cat -r 2 c |
110 c (no-eol) | 112 c (no-eol) |
111 $ hg cat -r 3 b | 113 $ hg cat -r 3 b |
112 b (no-eol) | 114 b (no-eol) |
113 $ hg rebase --inmemory --debug -s 1 -d 3 | grep rebasing | 115 $ hg rebase --debug -s 1 -d 3 | grep rebasing |
114 rebasing in-memory | 116 rebasing in-memory |
115 rebasing 1:02952614a83d "d" (d) | 117 rebasing 1:02952614a83d "d" (d) |
116 rebasing 2:f56b71190a8f "c" | 118 rebasing 2:f56b71190a8f "c" |
117 $ hg tglog | 119 $ hg tglog |
118 o 3: 753feb6fd12a 'c' | 120 o 3: 753feb6fd12a 'c' |
140 | 142 |
141 Rebase the working copy parent, which should default to an on-disk merge even if | 143 Rebase the working copy parent, which should default to an on-disk merge even if |
142 we requested in-memory. | 144 we requested in-memory. |
143 $ hg up -C 3 | 145 $ hg up -C 3 |
144 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 146 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
145 $ hg rebase -r 3 -d 0 --inmemory --debug | grep rebasing | 147 $ hg rebase -r 3 -d 0 --debug | grep rebasing |
146 rebasing on disk | 148 rebasing on disk |
147 rebasing 3:753feb6fd12a "c" (tip) | 149 rebasing 3:753feb6fd12a "c" (tip) |
148 $ hg tglog | 150 $ hg tglog |
149 @ 3: 844a7de3e617 'c' | 151 @ 3: 844a7de3e617 'c' |
150 | | 152 | |