Mercurial > hg
comparison mercurial/cmdutil.py @ 3673:eb0b4a2d70a9
white space and line break cleanups
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 17 Nov 2006 08:06:54 +0100 |
parents | 4d988b7412f2 |
children | 67f44b825784 |
comparison
equal
deleted
inserted
replaced
3672:e8730b5b8a32 | 3673:eb0b4a2d70a9 |
---|---|
91 if total is not None: | 91 if total is not None: |
92 expander['N'] = lambda: str(total) | 92 expander['N'] = lambda: str(total) |
93 if seqno is not None: | 93 if seqno is not None: |
94 expander['n'] = lambda: str(seqno) | 94 expander['n'] = lambda: str(seqno) |
95 if total is not None and seqno is not None: | 95 if total is not None and seqno is not None: |
96 expander['n'] = lambda:str(seqno).zfill(len(str(total))) | 96 expander['n'] = lambda: str(seqno).zfill(len(str(total))) |
97 if pathname is not None: | 97 if pathname is not None: |
98 expander['s'] = lambda: os.path.basename(pathname) | 98 expander['s'] = lambda: os.path.basename(pathname) |
99 expander['d'] = lambda: os.path.dirname(pathname) or '.' | 99 expander['d'] = lambda: os.path.dirname(pathname) or '.' |
100 expander['p'] = lambda: pathname | 100 expander['p'] = lambda: pathname |
101 | 101 |