mercurial/commands.py
changeset 495 e94cebc60d96
parent 485 c5705ab9cebd
parent 493 30752b14f759
child 496 6ce95a04999d
equal deleted inserted replaced
489:a636f7d2cd5b 495:e94cebc60d96
   121         ui.note("manifest:    %d:%s\n" % (repo.manifest.rev(changes[0]),
   121         ui.note("manifest:    %d:%s\n" % (repo.manifest.rev(changes[0]),
   122                                           hg.hex(changes[0])))
   122                                           hg.hex(changes[0])))
   123     ui.status("user:        %s\n" % changes[1])
   123     ui.status("user:        %s\n" % changes[1])
   124     ui.status("date:        %s\n" % time.asctime(
   124     ui.status("date:        %s\n" % time.asctime(
   125         time.localtime(float(changes[2].split(' ')[0]))))
   125         time.localtime(float(changes[2].split(' ')[0]))))
   126     ui.note("files:       %s\n" % " ".join(changes[3]))
   126     if ui.debugflag:
       
   127         files = repo.diffrevs(changelog.parents(changenode)[0], changenode)
       
   128         for key, value in zip(["files:", "files+:", "files-:"], files):
       
   129             if value:
       
   130                 ui.note("%-12s %s\n" % (key, " ".join(value)))
       
   131     else:
       
   132         ui.note("files:       %s\n" % " ".join(changes[3]))
   127     description = changes[4].strip()
   133     description = changes[4].strip()
   128     if description:
   134     if description:
   129         if ui.verbose:
   135         if ui.verbose:
   130             ui.status("description:\n")
   136             ui.status("description:\n")
   131             ui.status(description)
   137             ui.status(description)