comparison mercurial/commands.py @ 746:9095e3456ea7

Change C to M in status
author mpm@selenic.com
date Thu, 21 Jul 2005 12:24:42 -0500
parents 9246ae925d57
children c3ce3976ae75
comparison
equal deleted inserted replaced
745:9246ae925d57 746:9095e3456ea7
965 httpd.serve_forever() 965 httpd.serve_forever()
966 966
967 def status(ui, repo, *pats, **opts): 967 def status(ui, repo, *pats, **opts):
968 '''show changed files in the working directory 968 '''show changed files in the working directory
969 969
970 C = changed 970 M = modified
971 A = added 971 A = added
972 R = removed 972 R = removed
973 ? = not tracked''' 973 ? = not tracked'''
974 974
975 (c, a, d, u) = repo.changes(match = matchpats(repo.getcwd(), pats, opts)) 975 (c, a, d, u) = repo.changes(match = matchpats(repo.getcwd(), pats, opts))
976 (c, a, d, u) = map(lambda x: relfilter(repo, x), (c, a, d, u)) 976 (c, a, d, u) = map(lambda x: relfilter(repo, x), (c, a, d, u))
977 977
978 for f in c: 978 for f in c:
979 ui.write("C ", f, "\n") 979 ui.write("M ", f, "\n")
980 for f in a: 980 for f in a:
981 ui.write("A ", f, "\n") 981 ui.write("A ", f, "\n")
982 for f in d: 982 for f in d:
983 ui.write("R ", f, "\n") 983 ui.write("R ", f, "\n")
984 for f in u: 984 for f in u: