Mercurial > hg
changeset 10683:cfbf064f0069
mq: qsave creates entries with the left part empty (':patchname')
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sun, 14 Mar 2010 11:12:07 +0100 |
parents | 8ed350051896 |
children | 485c1d7f8a77 |
files | hgext/mq.py |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Sun Mar 14 01:35:54 2010 +0100 +++ b/hgext/mq.py Sun Mar 14 11:12:07 2010 +0100 @@ -1488,12 +1488,11 @@ qpp = [bin(x) for x in l] elif datastart != None: l = line.rstrip() - try: - n, name = l.split(':', 1) - except ValueError: + n, name = l.split(':', 1) + if n: + applied.append(statusentry(bin(n), name)) + else: series.append(l) - else: - applied.append(statusentry(bin(n), name)) if datastart is None: self.ui.warn(_("No saved patch data found\n")) return 1