<s> """<STR_LIT>""" <EOL> import sys , py <EOL> def kill ( p , root ) : <EOL> print '<STR_LIT>' % ( p . relto ( root ) , ) <EOL> p . remove ( rec = <NUM_LIT:1> ) <EOL> def svnwcrevert ( path , root = None , precious = [ ] ) : <EOL> if root is None : <EOL> root = path <EOL> wcpath = py . path . svnwc ( path ) <EOL> try : <EOL> st = wcpath . status ( ) <EOL> except ValueError : <EOL> kill ( path , root ) <EOL> return <EOL> for p in path . listdir ( ) : <EOL> if p . basename == '<STR_LIT>' or p . basename in precious : <EOL> continue <EOL> wcp = py . path . svnwc ( p ) <EOL> if wcp not in st . unchanged and wcp not in st . external : <EOL> kill ( p , root ) <EOL> elif p . check ( dir = <NUM_LIT:1> ) : <EOL> svnwcrevert ( p , root ) <EOL> optparse = py . compat . optparse <EOL> parser = optparse . OptionParser ( usage = __doc__ ) <EOL> parser . add_option ( "<STR_LIT>" , "<STR_LIT>" , <EOL> action = "<STR_LIT>" , dest = "<STR_LIT>" , default = [ ] , <EOL> help = "<STR_LIT>" ) <EOL> def main ( ) : <EOL> opts , args = parser . parse_args ( ) <EOL> if len ( args ) != <NUM_LIT:1> : <EOL> parser . print_help ( ) <EOL> sys . exit ( <NUM_LIT:2> ) <EOL> svnwcrevert ( py . path . local ( args [ <NUM_LIT:0> ] ) , precious = opts . precious ) </s>
