tests/test-commandserver.py
branchstable
changeset 16202 53e2cd303ecf
parent 16201 fb7c4c14223f
child 16683 525fdb738975
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)