Show More
@@ -526,7 +526,7 b' def tersedir(statuslist, terseargs):' | |||||
526 | allst = ('m', 'a', 'r', 'd', 'u', 'i', 'c') |
|
526 | allst = ('m', 'a', 'r', 'd', 'u', 'i', 'c') | |
527 |
|
527 | |||
528 | # checking the argument validity |
|
528 | # checking the argument validity | |
529 | for s in terseargs: |
|
529 | for s in pycompat.bytestr(terseargs): | |
530 | if s not in allst: |
|
530 | if s not in allst: | |
531 | raise error.Abort(_("'%s' not recognized") % s) |
|
531 | raise error.Abort(_("'%s' not recognized") % s) | |
532 |
|
532 | |||
@@ -537,9 +537,10 b' def tersedir(statuslist, terseargs):' | |||||
537 |
|
537 | |||
538 | tersedict = {} |
|
538 | tersedict = {} | |
539 | for attrname in pstatus: |
|
539 | for attrname in pstatus: | |
|
540 | statuschar = attrname[0:1] | |||
540 | for f in getattr(statuslist, attrname): |
|
541 | for f in getattr(statuslist, attrname): | |
541 |
rootobj.addfile(f, |
|
542 | rootobj.addfile(f, statuschar) | |
542 |
tersedict[ |
|
543 | tersedict[statuschar] = [] | |
543 |
|
544 | |||
544 | # we won't be tersing the root dir, so add files in it |
|
545 | # we won't be tersing the root dir, so add files in it | |
545 | for st, fpath in rootobj.iterfilepaths(): |
|
546 | for st, fpath in rootobj.iterfilepaths(): |
General Comments 0
You need to be logged in to leave comments.
Login now