Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/tests/test-commandserver.py Thu Mar 01 17:42:49 2012 +0200 +++ b/tests/test-commandserver.py Thu Mar 01 17:49:59 2012 +0200 @@ -219,6 +219,20 @@ runcommand(server, ['branch']) os.system('hg branch default') +def hgignore(server): + readchannel(server) + f = open('.hgignore', 'ab') + f.write('') + f.close() + runcommand(server, ['commit', '-Am.']) + f = open('ignored-file', 'ab') + f.write('') + f.close() + f = open('.hgignore', 'ab') + f.write('ignored-file') + f.close() + runcommand(server, ['status', '-i', '-u']) + if __name__ == '__main__': os.system('hg init') @@ -240,3 +254,4 @@ check(setphase) check(rollback) check(branch) + check(hgignore)