comparison tests/test-prev-next.t @ 3232:c1d20598bc2b

branching: merge with stable
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 05 Dec 2017 18:31:08 +0100
parents 8cc8fb94cc00 28fb347a5bf8
children 4303a46b4167 210132852a3d bee9fee8f36b
comparison
equal deleted inserted replaced
3231:996dabc4224b 3232:c1d20598bc2b
1 $ cat >> $HGRCPATH <<EOF 1 $ cat >> $HGRCPATH <<EOF
2 > [extensions] 2 > [extensions]
3 > EOF 3 > EOF
4 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH 4 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH
5 5
6 hg prev -B should move active bookmark 6 hg prev & next move to parent/child
7 $ hg init test-repo 7 $ hg init test-repo
8 $ cd test-repo 8 $ cd test-repo
9 $ touch a 9 $ touch a
10 $ hg add a 10 $ hg add a
11 $ hg commit -m 'added a' 11 $ hg commit -m 'added a'
12 $ touch b 12 $ touch b
13 $ hg add b 13 $ hg add b
14 $ hg commit -m 'added b' 14 $ hg commit -m 'added b'
15 $ hg prev
16 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
17 [0] added a
18 $ hg next
19 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
20 [1] added b
21
22 hg prev & next respect --quiet
23 $ hg prev -q
24 $ hg next -q
25
26 hg prev -B should move active bookmark
15 $ hg bookmark mark 27 $ hg bookmark mark
16 $ hg bookmarks 28 $ hg bookmarks
17 * mark 1:6e742c9127b3 29 * mark 1:6e742c9127b3
18 $ hg prev -B 30 $ hg prev -B
19 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 31 0 files updated, 0 files merged, 1 files removed, 0 files unresolved