comparison svncommand.py @ 185:57355b0e7bd1

Creating patch for documention messages.
author Dan Villiom Podlaski Christiansen <danchr@cs.au.dk>
date Sat, 17 Jan 2009 15:30:37 -0600
parents e37f9d3fd5e7
children 77812f98e250
comparison
equal deleted inserted replaced
184:d3ea6c98a086 185:57355b0e7bd1
53 else: 53 else:
54 raise 54 raise
55 55
56 56
57 def help_command(ui, args=None, **opts): 57 def help_command(ui, args=None, **opts):
58 """Get help on the subsubcommands. 58 """show help for a given subcommands or a help overview
59 """ 59 """
60 if args: 60 if args:
61 subcommand = args[0] 61 subcommand = args[0]
62 if subcommand not in svn_subcommands: 62 if subcommand not in svn_subcommands:
63 candidates = [] 63 candidates = []
77 return 77 return
78 ui.status(generate_help()) 78 ui.status(generate_help())
79 help_command = register_subcommand('help')(help_command) 79 help_command = register_subcommand('help')(help_command)
80 80
81 def update(ui, args, repo, clean=False, **opts): 81 def update(ui, args, repo, clean=False, **opts):
82 """Update to a specified Subversion revision number. 82 """update to a specified Subversion revision number
83 """ 83 """
84 assert len(args) == 1 84 assert len(args) == 1
85 rev = int(args[0]) 85 rev = int(args[0])
86 path = os.path.join(repo.path, 'svn', 'rev_map') 86 path = os.path.join(repo.path, 'svn', 'rev_map')
87 answers = [] 87 answers = []
102 return 1 102 return 1
103 update = register_subcommand('up')(update) 103 update = register_subcommand('up')(update)
104 104
105 105
106 def verify_revision(ui, args, repo, force=False, **opts): 106 def verify_revision(ui, args, repo, force=False, **opts):
107 """Verify a single converted revision. 107 """verify a single converted revision
108 Note: This wipes your working copy and then exports the corresponding 108 Note: This wipes your working copy and then exports the corresponding
109 Subversion into your working copy to verify. Use with caution. 109 Subversion into your working copy to verify. Use with caution.
110 """ 110 """
111 assert len(args) == 1 111 assert len(args) == 1
112 if not force: 112 if not force:
139 return 0 139 return 0
140 return 1 140 return 1
141 verify_revision = register_subcommand('verify_revision')(verify_revision) 141 verify_revision = register_subcommand('verify_revision')(verify_revision)
142 142
143 def verify_all_revisions(ui, args, repo, **opts): 143 def verify_all_revisions(ui, args, repo, **opts):
144 """Verify all the converted revisions 144 """verify converted revisions; all or starting at a revision
145 optionally starting at a revision.
146 145
147 Note: This is *extremely* abusive of the Subversion server. It exports every 146 Note: This is *extremely* abusive of the Subversion server. It exports every
148 revision of the code one revision at a time. 147 revision of the code one revision at a time.
149 """ 148 """
150 assert repo.status(ignored=True, 149 assert repo.status(ignored=True,