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 |
|
|
816 | ('modified', b'm'), | |
817 |
|
|
817 | ('added', b'a'), | |
818 |
|
|
818 | ('deleted', b'd'), | |
819 |
|
|
819 | ('clean', b'c'), | |
820 |
|
|
820 | ('unknown', b'u'), | |
821 |
|
|
821 | ('ignored', b'i'), | |
822 |
|
|
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