/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to lib/stdhome/command/stage_revert.py

  • Committer: Tim Marston
  • Date: 2014-09-09 19:14:47 UTC
  • Revision ID: tim@ed.am-20140909191447-j3rapksxamefpm68
minor comment formatting tweak

Show diffs side-by-side

added added

removed removed

64
64
                        if opt == "--force":
65
65
                                self.force = True
66
66
                        elif opt in [ '--repo', '-r' ]:
67
 
                                if not re.search( '^[-a-zA-z0-9.]+$', optarg ):
 
67
                                if not re.match( '^[-a-zA-z0-9.]+$', optarg ):
68
68
                                        raise the.program.FatalError(
69
69
                                                'invalid repository name: ' + optarg )
70
70
                                the.repo = optarg
72
72
                                the.verbose += 1
73
73
                        elif opt == "--help":
74
74
                                self.print_help()
75
 
 
 
75
                
76
76
                # discard first argument (the command)
77
77
                args.pop( 0 )
78
78