comparison mercurial/commands.py @ 493:30752b14f759

Make show_changeset show added/deleted files only in debug mode. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Make show_changeset show added/deleted files only in debug mode. This was necessary due to performance reasons. manifest hash: 35af5e8ff88a8706406fc8c42251ada79c7c9549 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCwOUkW7P1GVgWeRoRAvB5AKCJ9x/P3XOJVlQnCoh8cblnye+9RgCgkXLW 7Bt8/5yhPnsejYIGUMnppgo= =DNsf -----END PGP SIGNATURE-----
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 28 Jun 2005 06:50:28 +0100
parents df9b77f67998
children e94cebc60d96
comparison
equal deleted inserted replaced
492:9bd468e36de3 493:30752b14f759
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 if ui.verbose: 126 if ui.debugflag:
127 files = repo.diffrevs(changelog.parents(changenode)[0], changenode) 127 files = repo.diffrevs(changelog.parents(changenode)[0], changenode)
128 for key, value in zip(["files:", "files+:", "files-:"], files): 128 for key, value in zip(["files:", "files+:", "files-:"], files):
129 if value: 129 if value:
130 ui.note("%-12s %s\n" % (key, " ".join(value))) 130 ui.note("%-12s %s\n" % (key, " ".join(value)))
131 else:
132 ui.note("files: %s\n" % " ".join(changes[3]))
131 description = changes[4].strip() 133 description = changes[4].strip()
132 if description: 134 if description:
133 if ui.verbose: 135 if ui.verbose:
134 ui.status("description:\n") 136 ui.status("description:\n")
135 ui.status(description) 137 ui.status(description)