Mercurial > hg
changeset 9039:8761863c3118
p4: simplify sort key
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 05 Jul 2009 12:50:14 +0200 |
parents | 93fe89afc611 |
children | 4743d1a65dfe |
files | hgext/convert/p4.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/p4.py Sun Jul 05 12:43:40 2009 +0200 +++ b/hgext/convert/p4.py Sun Jul 05 12:50:14 2009 +0200 @@ -92,7 +92,7 @@ # list with depot pathnames, longest first vieworder = views.keys() - vieworder.sort(key=lambda x: -len(x)) + vieworder.sort(key=len, reverse=True) # handle revision limiting startrev = self.ui.config('convert', 'p4.startrev', default=0)