##// END OF EJS Templates
test-basic: make test compatible with chg...
Saurabh Singh -
r34449:1f5bd3e1 default
parent child Browse files
Show More
@@ -1,89 +1,99 b''
1 Create a repository:
1 Create a repository:
2
2
3 $ hg config
3 $ hg config
4 devel.all-warnings=true
4 devel.all-warnings=true
5 devel.default-date=0 0
5 devel.default-date=0 0
6 extensions.fsmonitor= (fsmonitor !)
6 extensions.fsmonitor= (fsmonitor !)
7 largefiles.usercache=$TESTTMP/.cache/largefiles (glob)
7 largefiles.usercache=$TESTTMP/.cache/largefiles (glob)
8 ui.slash=True
8 ui.slash=True
9 ui.interactive=False
9 ui.interactive=False
10 ui.mergemarkers=detailed
10 ui.mergemarkers=detailed
11 ui.promptecho=True
11 ui.promptecho=True
12 web.address=localhost
12 web.address=localhost
13 web\.ipv6=(?:True|False) (re)
13 web\.ipv6=(?:True|False) (re)
14 $ hg init t
14 $ hg init t
15 $ cd t
15 $ cd t
16
16
17 Prepare a changeset:
17 Prepare a changeset:
18
18
19 $ echo a > a
19 $ echo a > a
20 $ hg add a
20 $ hg add a
21
21
22 $ hg status
22 $ hg status
23 A a
23 A a
24
24
25 Writes to stdio succeed and fail appropriately
25 Writes to stdio succeed and fail appropriately
26
26
27 #if devfull
27 #if devfull
28 $ hg status 2>/dev/full
28 $ hg status 2>/dev/full
29 A a
29 A a
30
30
31 $ hg status >/dev/full
31 $ hg status >/dev/full
32 abort: No space left on device
32 abort: No space left on device
33 [255]
33 [255]
34 #endif
34
35
36 #if devfull no-chg
35 $ hg status >/dev/full 2>&1
37 $ hg status >/dev/full 2>&1
36 [1]
38 [1]
37
39
38 $ hg status ENOENT 2>/dev/full
40 $ hg status ENOENT 2>/dev/full
39 [1]
41 [1]
40 #endif
42 #endif
41
43
44 #if devfull chg
45 $ hg status >/dev/full 2>&1
46 [255]
47
48 $ hg status ENOENT 2>/dev/full
49 [255]
50 #endif
51
42 $ hg commit -m test
52 $ hg commit -m test
43
53
44 This command is ancient:
54 This command is ancient:
45
55
46 $ hg history
56 $ hg history
47 changeset: 0:acb14030fe0a
57 changeset: 0:acb14030fe0a
48 tag: tip
58 tag: tip
49 user: test
59 user: test
50 date: Thu Jan 01 00:00:00 1970 +0000
60 date: Thu Jan 01 00:00:00 1970 +0000
51 summary: test
61 summary: test
52
62
53
63
54 Verify that updating to revision 0 via commands.update() works properly
64 Verify that updating to revision 0 via commands.update() works properly
55
65
56 $ cat <<EOF > update_to_rev0.py
66 $ cat <<EOF > update_to_rev0.py
57 > from mercurial import ui, hg, commands
67 > from mercurial import ui, hg, commands
58 > myui = ui.ui.load()
68 > myui = ui.ui.load()
59 > repo = hg.repository(myui, path='.')
69 > repo = hg.repository(myui, path='.')
60 > commands.update(myui, repo, rev=0)
70 > commands.update(myui, repo, rev=0)
61 > EOF
71 > EOF
62 $ hg up null
72 $ hg up null
63 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
73 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
64 $ $PYTHON ./update_to_rev0.py
74 $ $PYTHON ./update_to_rev0.py
65 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
75 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
66 $ hg identify -n
76 $ hg identify -n
67 0
77 0
68
78
69
79
70 Poke around at hashes:
80 Poke around at hashes:
71
81
72 $ hg manifest --debug
82 $ hg manifest --debug
73 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 a
83 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 a
74
84
75 $ hg cat a
85 $ hg cat a
76 a
86 a
77
87
78 Verify should succeed:
88 Verify should succeed:
79
89
80 $ hg verify
90 $ hg verify
81 checking changesets
91 checking changesets
82 checking manifests
92 checking manifests
83 crosschecking files in changesets and manifests
93 crosschecking files in changesets and manifests
84 checking files
94 checking files
85 1 files, 1 changesets, 1 total revisions
95 1 files, 1 changesets, 1 total revisions
86
96
87 At the end...
97 At the end...
88
98
89 $ cd ..
99 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now