Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/commands.py @ 490:df9b77f67998
Make show_changeset show added and deleted files in verbose mode.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Make show_changeset show added and deleted files in verbose mode.
manifest hash: 189c2da64862f471b75b9d205907bff86c7423a3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCv4voW7P1GVgWeRoRAlLaAJsHGWEfNMMfDdsnk9/G9w86nf2I2QCgi4Rc
3HgiUFeTPi71I0tH+SV5Gsc=
=/see
-----END PGP SIGNATURE-----
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 27 Jun 2005 06:17:28 +0100 |
parents | c5705ab9cebd |
children | 30752b14f759 |
line wrap: on
line diff
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -123,7 +123,11 @@ def show_changeset(ui, repo, rev=0, chan ui.status("user: %s\n" % changes[1]) ui.status("date: %s\n" % time.asctime( time.localtime(float(changes[2].split(' ')[0])))) - ui.note("files: %s\n" % " ".join(changes[3])) + if ui.verbose: + files = repo.diffrevs(changelog.parents(changenode)[0], changenode) + for key, value in zip(["files:", "files+:", "files-:"], files): + if value: + ui.note("%-12s %s\n" % (key, " ".join(value))) description = changes[4].strip() if description: if ui.verbose: