Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 5405:8feb33c2d153
Display symlink or executable bit with manifest -v
New output looks like:
644 a
755 * b/a
644 @ l
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 06 Oct 2007 22:30:22 +0200 |
parents | 24de027551c1 |
children | e5eedd74e70f |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Oct 06 21:19:06 2007 +0200 +++ b/mercurial/commands.py Sat Oct 06 22:30:22 2007 +0200 @@ -1884,8 +1884,8 @@ The manifest is the list of files being version controlled. If no revision is given then the first parent of the working directory is used. - With -v flag, print file permissions. With --debug flag, print - file revision hashes. + With -v flag, print file permissions, symlink and executable bits. With + --debug flag, print file revision hashes. """ if rev and node: @@ -1902,7 +1902,9 @@ if ui.debugflag: ui.write("%40s " % hex(m[f])) if ui.verbose: - ui.write("%3s " % (m.execf(f) and "755" or "644")) + type = m.execf(f) and "*" or m.linkf(f) and "@" or " " + perm = m.execf(f) and "755" or "644" + ui.write("%3s %1s " % (perm, type)) ui.write("%s\n" % f) def merge(ui, repo, node=None, force=None, rev=None):