##// END OF EJS Templates
forget: access status fields by name, not index
Martin von Zweigbergk -
r32174:e4a4ebfd default
parent child Browse files
Show More
@@ -2309,7 +2309,7 b' def forget(ui, repo, match, prefix, expl'
2309 forgot = []
2309 forgot = []
2310
2310
2311 s = repo.status(match=matchmod.badmatch(match, badfn), clean=True)
2311 s = repo.status(match=matchmod.badmatch(match, badfn), clean=True)
2312 forget = sorted(s[0] + s[1] + s[3] + s[6])
2312 forget = sorted(s.modified + s.added + s.deleted + s.clean)
2313 if explicitonly:
2313 if explicitonly:
2314 forget = [f for f in forget if match.exact(f)]
2314 forget = [f for f in forget if match.exact(f)]
2315
2315
General Comments 0
You need to be logged in to leave comments. Login now