mercurial/cmdutil.py
changeset 21036 a1a1bd09e4f4
parent 21033 254f55b64e31
child 21040 bdf5ed5246d2
equal deleted inserted replaced
21035:e6e34c17b1cc 21036:a1a1bd09e4f4
  1946                 date = opts.get('date') or old.date()
  1946                 date = opts.get('date') or old.date()
  1947             editmsg = False
  1947             editmsg = False
  1948             if not message:
  1948             if not message:
  1949                 editmsg = True
  1949                 editmsg = True
  1950                 message = old.description()
  1950                 message = old.description()
       
  1951             elif opts.get('edit'):
       
  1952                 editmsg = True
  1951 
  1953 
  1952             pureextra = extra.copy()
  1954             pureextra = extra.copy()
  1953             extra['amend_source'] = old.hex()
  1955             extra['amend_source'] = old.hex()
  1954 
  1956 
  1955             new = context.memctx(repo,
  1957             new = context.memctx(repo,