equal
deleted
inserted
replaced
289 |
289 |
290 os.chdir(dest) |
290 os.chdir(dest) |
291 |
291 |
292 if link: |
292 if link: |
293 ui.debug("copying by hardlink\n") |
293 ui.debug("copying by hardlink\n") |
294 os.system("cp -al %s/.hg .hg" % source) |
294 util.system("cp -al %s/.hg .hg" % source) |
295 try: |
295 try: |
296 os.remove(".hg/dirstate") |
296 os.remove(".hg/dirstate") |
297 except: pass |
297 except: pass |
298 |
298 |
299 repo = hg.repository(ui, ".") |
299 repo = hg.repository(ui, ".") |
869 stats.sort_stats('time', 'calls') |
869 stats.sort_stats('time', 'calls') |
870 stats.print_stats(40) |
870 stats.print_stats(40) |
871 return r |
871 return r |
872 else: |
872 else: |
873 return d() |
873 return d() |
|
874 except util.CommandError, inst: |
|
875 u.warn("abort: %s\n" % inst.args) |
874 except hg.RepoError, inst: |
876 except hg.RepoError, inst: |
875 u.warn("abort: ", inst, "!\n") |
877 u.warn("abort: ", inst, "!\n") |
876 except SignalInterrupt: |
878 except SignalInterrupt: |
877 u.warn("killed!\n") |
879 u.warn("killed!\n") |
878 except KeyboardInterrupt: |
880 except KeyboardInterrupt: |