Show More
@@ -452,7 +452,7 def dorecord(ui, repo, committer, *pats, | |||
|
452 | 452 | fd, tmpname = tempfile.mkstemp(prefix=f.replace('/', '_')+'.', |
|
453 | 453 | dir=backupdir) |
|
454 | 454 | os.close(fd) |
|
455 | ui.debug('backup %r as %r\n' % (f, tmpname)) | |
|
455 | ui.debug(_('backup %r as %r\n') % (f, tmpname)) | |
|
456 | 456 | util.copyfile(repo.wjoin(f), tmpname) |
|
457 | 457 | backups[f] = tmpname |
|
458 | 458 | |
@@ -470,7 +470,7 def dorecord(ui, repo, committer, *pats, | |||
|
470 | 470 | # 3b. (apply) |
|
471 | 471 | if dopatch: |
|
472 | 472 | try: |
|
473 | ui.debug('applying patch\n') | |
|
473 | ui.debug(_('applying patch\n')) | |
|
474 | 474 | ui.debug(fp.getvalue()) |
|
475 | 475 | patch.internalpatch(fp, ui, 1, repo.root) |
|
476 | 476 | except patch.PatchError, err: |
@@ -498,7 +498,7 def dorecord(ui, repo, committer, *pats, | |||
|
498 | 498 | # 5. finally restore backed-up files |
|
499 | 499 | try: |
|
500 | 500 | for realname, tmpname in backups.iteritems(): |
|
501 | ui.debug('restoring %r to %r\n' % (tmpname, realname)) | |
|
501 | ui.debug(_('restoring %r to %r\n') % (tmpname, realname)) | |
|
502 | 502 | util.copyfile(tmpname, repo.wjoin(realname)) |
|
503 | 503 | os.unlink(tmpname) |
|
504 | 504 | os.rmdir(backupdir) |
General Comments 0
You need to be logged in to leave comments.
Login now