Mercurial > hg > crecord
changeset 17:b79cd033050f
crecord: fix bug when there were no changes to files
author | Mark Edgington <edgimar@gmail.com> |
---|---|
date | Tue, 02 Dec 2008 22:18:15 +0100 |
parents | 3cc802f3e53e |
children | f74c9f43a6cc |
files | crecord.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/crecord.py +++ b/crecord.py @@ -552,6 +552,10 @@ # with curses. Create a list of headers only. headers = [c for c in chunks if isinstance(c, header)] + # if there are no changed files + if len(headers) == 0: + return [] + # let user choose headers/hunks/lines, and mark their applied flags accordingly selectChunks(headers)