comparison svncommand.py @ 155:ba801f44d240

utility_commands: Implement rebuildmeta so that metadata can be rebuilt. hg_delta_editor: Fixed some longstanding branch_info bugs detected while rebuilding meta.
author Augie Fackler <durin42@gmail.com>
date Tue, 23 Dec 2008 22:19:26 -0600
parents 291925677a9f
children e37f9d3fd5e7
comparison
equal deleted inserted replaced
154:6fa97cfbf62f 155:ba801f44d240
13 # dirty trick to force demandimport to run my decorator anyway. 13 # dirty trick to force demandimport to run my decorator anyway.
14 from utility_commands import print_wc_url 14 from utility_commands import print_wc_url
15 from fetch_command import fetch_revisions 15 from fetch_command import fetch_revisions
16 from push_cmd import commit_from_rev 16 from push_cmd import commit_from_rev
17 from diff_cmd import diff_command 17 from diff_cmd import diff_command
18 from rebuildmeta import rebuildmeta
18 # shut up, pyflakes, we must import those 19 # shut up, pyflakes, we must import those
19 __x = [print_wc_url, fetch_revisions, commit_from_rev, diff_command] 20 __x = [print_wc_url, fetch_revisions, commit_from_rev, diff_command, rebuildmeta]
20 21
21 mode755 = (stat.S_IXUSR | stat.S_IXGRP| stat.S_IXOTH | stat.S_IRUSR | 22 mode755 = (stat.S_IXUSR | stat.S_IXGRP| stat.S_IXOTH | stat.S_IRUSR |
22 stat.S_IRGRP| stat.S_IROTH | stat.S_IWUSR) 23 stat.S_IRGRP| stat.S_IROTH | stat.S_IWUSR)
23 mode644 = (stat.S_IRUSR | stat.S_IRGRP| stat.S_IROTH | stat.S_IWUSR) 24 mode644 = (stat.S_IRUSR | stat.S_IRGRP| stat.S_IROTH | stat.S_IWUSR)
24 25
31 candidates.append(c) 32 candidates.append(c)
32 if len(candidates) == 1: 33 if len(candidates) == 1:
33 subcommand = candidates[0] 34 subcommand = candidates[0]
34 path = os.path.dirname(repo.path) 35 path = os.path.dirname(repo.path)
35 try: 36 try:
36 opts['svn_url'] = open(os.path.join(repo.path, 'svn', 'url')).read() 37 if subcommand != 'rebuildmeta':
38 opts['svn_url'] = open(os.path.join(repo.path, 'svn', 'url')).read()
37 return svn_subcommands[subcommand](ui, args=args, 39 return svn_subcommands[subcommand](ui, args=args,
38 hg_repo_path=path, 40 hg_repo_path=path,
39 repo=repo, 41 repo=repo,
40 **opts) 42 **opts)
41 except TypeError: 43 except TypeError: