src/do-refresh-auth
changeset 76 e6a35b0f853c
parent 75 5af89523a9d3
child 77 8d14aac93b5d
equal deleted inserted replaced
75:5af89523a9d3 76:e6a35b0f853c
     1 #!/usr/bin/env python
       
     2 # Copyright 2008-2009 LShift Ltd
       
     3 
       
     4 # WARNING
       
     5 # This script completely destroys your ~/.ssh/authorized_keys
       
     6 # file every time it is run
       
     7 # WARNING
       
     8 
       
     9 import sys
       
    10 from mercurialserver import refreshauth
       
    11 
       
    12 if len(sys.argv) != 1:
       
    13     sys.stderr.write("refresh-auth: must be called with no arguments (%s)\n" % sys.argv)
       
    14     sys.exit(-1)
       
    15 
       
    16 refreshauth.refreshAuth()