Show More
@@ -37,10 +37,16 b' def repo_size(ui, repo, hooktype=None, *' | |||
|
37 | 37 | for path, dirs, files in os.walk(repo.root): |
|
38 | 38 | if path.find('.hg') != -1: |
|
39 | 39 | for f in files: |
|
40 | try: | |
|
40 | 41 | size_hg += os.path.getsize(os.path.join(path, f)) |
|
42 | except OSError: | |
|
43 | pass | |
|
41 | 44 | else: |
|
42 | 45 | for f in files: |
|
46 | try: | |
|
43 | 47 | size_root += os.path.getsize(os.path.join(path, f)) |
|
48 | except OSError: | |
|
49 | pass | |
|
44 | 50 | |
|
45 | 51 | size_hg_f = h.format_byte_size(size_hg) |
|
46 | 52 | size_root_f = h.format_byte_size(size_root) |
General Comments 0
You need to be logged in to leave comments.
Login now