mercurial/commands.py
changeset 1657 dbb8bba48510
parent 1654 b7fc961507db
child 1661 b11507d6d16d
equal deleted inserted replaced
1656:14d73fff4c45 1657:dbb8bba48510
  1791     other = hg.repository(ui, dest)
  1791     other = hg.repository(ui, dest)
  1792     r = repo.push(other, force)
  1792     r = repo.push(other, force)
  1793     return r
  1793     return r
  1794 
  1794 
  1795 def rawcommit(ui, repo, *flist, **rc):
  1795 def rawcommit(ui, repo, *flist, **rc):
  1796     """raw commit interface
  1796     """raw commit interface (DEPRECATED)
  1797 
  1797 
  1798     Lowlevel commit, for use in helper scripts.
  1798     Lowlevel commit, for use in helper scripts.
  1799 
  1799 
  1800     This command is not intended to be used by normal users, as it is
  1800     This command is not intended to be used by normal users, as it is
  1801     primarily useful for importing from other SCMs.
  1801     primarily useful for importing from other SCMs.
  1802     """
  1802 
       
  1803     This command is now deprecated and will be removed in a future
       
  1804     release, please use debugsetparents and commit instead.
       
  1805     """
       
  1806 
       
  1807     ui.warn(_("(the rawcommit command is deprecated)\n"))
       
  1808 
  1803     message = rc['message']
  1809     message = rc['message']
  1804     if not message and rc['logfile']:
  1810     if not message and rc['logfile']:
  1805         try:
  1811         try:
  1806             message = open(rc['logfile']).read()
  1812             message = open(rc['logfile']).read()
  1807         except IOError:
  1813         except IOError: