Mercurial > hg > mercurial-source
comparison tests/test-convert-bzr.t @ 16898:8149ff405c78
tests: convert some 'hghave execbit' to #if
This enables some new tests for running on windows.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 10 Jun 2012 14:14:05 +0200 |
parents | 4e4c416a0b1f |
children | ab4644c3064f |
comparison
equal
deleted
inserted
replaced
16897:bb91c602d4ad | 16898:8149ff405c78 |
---|---|
1 $ "$TESTDIR/hghave" symlink execbit || exit 80 | |
2 | |
3 $ . "$TESTDIR/bzr-definitions" | 1 $ . "$TESTDIR/bzr-definitions" |
4 | 2 |
5 create and rename on the same file in the same step | 3 create and rename on the same file in the same step |
6 | 4 |
7 $ mkdir test-createandrename | 5 $ mkdir test-createandrename |
155 |/ | 153 |/ |
156 o 0@source "Initial add" files: a b | 154 o 0@source "Initial add" files: a b |
157 | 155 |
158 $ cd .. | 156 $ cd .. |
159 | 157 |
158 #if symlink execbit | |
159 | |
160 symlinks and executable files | 160 symlinks and executable files |
161 | 161 |
162 $ mkdir test-symlinks | 162 $ mkdir test-symlinks |
163 $ cd test-symlinks | 163 $ cd test-symlinks |
164 $ bzr init -q source | 164 $ bzr init -q source |
197 644 @ altname | 197 644 @ altname |
198 644 d/a | 198 644 d/a |
199 755 * newprog | 199 755 * newprog |
200 644 program | 200 644 program |
201 644 @ syma | 201 644 @ syma |
202 | |
203 test the symlinks can be recreated | |
204 | |
202 $ cd source-hg | 205 $ cd source-hg |
203 | |
204 test the symlinks can be recreated | |
205 | |
206 $ hg up | 206 $ hg up |
207 5 files updated, 0 files merged, 0 files removed, 0 files unresolved | 207 5 files updated, 0 files merged, 0 files removed, 0 files unresolved |
208 $ hg cat syma; echo | 208 $ hg cat syma; echo |
209 a | 209 a |
210 $ cd ../.. | |
211 | |
212 #endif | |
210 | 213 |
211 Multiple branches | 214 Multiple branches |
212 | 215 |
213 $ bzr init-repo -q --no-trees repo | 216 $ bzr init-repo -q --no-trees repo |
214 $ bzr init -q repo/trunk | 217 $ bzr init -q repo/trunk |