mercurial/commands.py
changeset 7874 d812029cda85
parent 7850 74c3baca65c9
child 7875 553aa0cbeab6
equal deleted inserted replaced
7873:4a4c7f6a5912 7874:d812029cda85
   892 
   892 
   893     # templates
   893     # templates
   894     ui.status(_("Checking templates...\n"))
   894     ui.status(_("Checking templates...\n"))
   895     try:
   895     try:
   896         import templater
   896         import templater
   897         t = templater.templater(templater.templatepath("map-cmdline.default"))
   897         templater.templater(templater.templatepath("map-cmdline.default"))
   898     except Exception, inst:
   898     except Exception, inst:
   899         ui.write(" %s\n" % inst)
   899         ui.write(" %s\n" % inst)
   900         ui.write(_(" (templates seem to have been installed incorrectly)\n"))
   900         ui.write(_(" (templates seem to have been installed incorrectly)\n"))
   901         problems += 1
   901         problems += 1
   902 
   902 
  1688                 if opts.get('exact') or opts.get('import_branch'):
  1688                 if opts.get('exact') or opts.get('import_branch'):
  1689                     repo.dirstate.setbranch(branch or 'default')
  1689                     repo.dirstate.setbranch(branch or 'default')
  1690 
  1690 
  1691                 files = {}
  1691                 files = {}
  1692                 try:
  1692                 try:
  1693                     fuzz = patch.patch(tmpname, ui, strip=strip, cwd=repo.root,
  1693                     patch.patch(tmpname, ui, strip=strip, cwd=repo.root,
  1694                                        files=files)
  1694                                 files=files)
  1695                 finally:
  1695                 finally:
  1696                     files = patch.updatedir(ui, repo, files, similarity=sim/100.)
  1696                     files = patch.updatedir(ui, repo, files, similarity=sim/100.)
  1697                 if not opts.get('no_commit'):
  1697                 if not opts.get('no_commit'):
  1698                     n = repo.commit(files, message, opts.get('user') or user,
  1698                     n = repo.commit(files, message, opts.get('user') or user,
  1699                                     opts.get('date') or date)
  1699                                     opts.get('date') or date)