equal
deleted
inserted
replaced
75 try: |
75 try: |
76 hhash = self._getfile(tmpfile, filename, hash) |
76 hhash = self._getfile(tmpfile, filename, hash) |
77 except StoreError, err: |
77 except StoreError, err: |
78 ui.warn(err.longmessage()) |
78 ui.warn(err.longmessage()) |
79 hhash = "" |
79 hhash = "" |
80 tmpfile.close() # has probably already been closed! |
80 tmpfile.close() |
81 |
81 |
82 if hhash != hash: |
82 if hhash != hash: |
83 if hhash != "": |
83 if hhash != "": |
84 ui.warn(_('%s: data corruption (expected %s, got %s)\n') |
84 ui.warn(_('%s: data corruption (expected %s, got %s)\n') |
85 % (filename, hash, hhash)) |
85 % (filename, hash, hhash)) |