##// END OF EJS Templates
terse-status: use `sysstr` to specify attributes to set...
marmoute -
r51803:1270677d default
parent child Browse files
Show More
@@ -813,18 +813,17 b' def tersedir(statuslist, terseargs):'
813 # creating a dirnode object for the root of the repo
813 # creating a dirnode object for the root of the repo
814 rootobj = dirnode(b'')
814 rootobj = dirnode(b'')
815 pstatus = (
815 pstatus = (
816 b'modified',
816 ('modified', b'm'),
817 b'added',
817 ('added', b'a'),
818 b'deleted',
818 ('deleted', b'd'),
819 b'clean',
819 ('clean', b'c'),
820 b'unknown',
820 ('unknown', b'u'),
821 b'ignored',
821 ('ignored', b'i'),
822 b'removed',
822 ('removed', b'r'),
823 )
823 )
824
824
825 tersedict = {}
825 tersedict = {}
826 for attrname in pstatus:
826 for attrname, statuschar in pstatus:
827 statuschar = attrname[0:1]
828 for f in getattr(statuslist, attrname):
827 for f in getattr(statuslist, attrname):
829 rootobj.addfile(f, statuschar)
828 rootobj.addfile(f, statuschar)
830 tersedict[statuschar] = []
829 tersedict[statuschar] = []
General Comments 0
You need to be logged in to leave comments. Login now