Mercurial > public > mercurial-scm > hg
comparison tests/test-commandserver.py @ 16202:53e2cd303ecf stable 2.1.1
dirstate: filecacheify _ignore (issue3278)
This still doesn't handle the case where a command is run with
--config ui.ignore=path since we only look for changes in .hgignore.
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Thu, 01 Mar 2012 17:49:59 +0200 |
parents | fb7c4c14223f |
children | 525fdb738975 |
comparison
equal
deleted
inserted
replaced
16201:fb7c4c14223f | 16202:53e2cd303ecf |
---|---|
217 runcommand(server, ['branch']) | 217 runcommand(server, ['branch']) |
218 os.system('hg branch foo') | 218 os.system('hg branch foo') |
219 runcommand(server, ['branch']) | 219 runcommand(server, ['branch']) |
220 os.system('hg branch default') | 220 os.system('hg branch default') |
221 | 221 |
222 def hgignore(server): | |
223 readchannel(server) | |
224 f = open('.hgignore', 'ab') | |
225 f.write('') | |
226 f.close() | |
227 runcommand(server, ['commit', '-Am.']) | |
228 f = open('ignored-file', 'ab') | |
229 f.write('') | |
230 f.close() | |
231 f = open('.hgignore', 'ab') | |
232 f.write('ignored-file') | |
233 f.close() | |
234 runcommand(server, ['status', '-i', '-u']) | |
235 | |
222 if __name__ == '__main__': | 236 if __name__ == '__main__': |
223 os.system('hg init') | 237 os.system('hg init') |
224 | 238 |
225 check(hellomessage) | 239 check(hellomessage) |
226 check(unknowncommand) | 240 check(unknowncommand) |
238 check(bookmarks) | 252 check(bookmarks) |
239 check(tagscache) | 253 check(tagscache) |
240 check(setphase) | 254 check(setphase) |
241 check(rollback) | 255 check(rollback) |
242 check(branch) | 256 check(branch) |
257 check(hgignore) |