comparison mercurial/commands.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 e8730b5b8a32
children 2956948b81f3
comparison
equal deleted inserted replaced
3672:e8730b5b8a32 3673:eb0b4a2d70a9
264 """list repository named branches 264 """list repository named branches
265 265
266 List the repository's named branches. 266 List the repository's named branches.
267 """ 267 """
268 b = repo.branchtags() 268 b = repo.branchtags()
269 l = [(-repo.changelog.rev(n), n, t) for t,n in b.items()] 269 l = [(-repo.changelog.rev(n), n, t) for t, n in b.items()]
270 l.sort() 270 l.sort()
271 for r, n, t in l: 271 for r, n, t in l:
272 hexfunc = ui.debugflag and hex or short 272 hexfunc = ui.debugflag and hex or short
273 if ui.quiet: 273 if ui.quiet:
274 ui.write("%s\n" % t) 274 ui.write("%s\n" % t)
985 counts[change] += 1 985 counts[change] += 1
986 return counts['+'], counts['-'] 986 return counts['+'], counts['-']
987 987
988 fstate = {} 988 fstate = {}
989 skip = {} 989 skip = {}
990 get = util.cachefunc(lambda r:repo.changectx(r).changeset()) 990 get = util.cachefunc(lambda r: repo.changectx(r).changeset())
991 changeiter, matchfn = cmdutil.walkchangerevs(ui, repo, pats, get, opts) 991 changeiter, matchfn = cmdutil.walkchangerevs(ui, repo, pats, get, opts)
992 count = 0 992 count = 0
993 incrementing = False 993 incrementing = False
994 follow = opts.get('follow') 994 follow = opts.get('follow')
995 for st, rev, fns in changeiter: 995 for st, rev, fns in changeiter:
1420 non-trivial parents, user, date and time, and a summary for each 1420 non-trivial parents, user, date and time, and a summary for each
1421 commit. When the -v/--verbose switch is used, the list of changed 1421 commit. When the -v/--verbose switch is used, the list of changed
1422 files and full commit message is shown. 1422 files and full commit message is shown.
1423 """ 1423 """
1424 1424
1425 get = util.cachefunc(lambda r:repo.changectx(r).changeset()) 1425 get = util.cachefunc(lambda r: repo.changectx(r).changeset())
1426 changeiter, matchfn = cmdutil.walkchangerevs(ui, repo, pats, get, opts) 1426 changeiter, matchfn = cmdutil.walkchangerevs(ui, repo, pats, get, opts)
1427 1427
1428 if opts['limit']: 1428 if opts['limit']:
1429 try: 1429 try:
1430 limit = int(opts['limit']) 1430 limit = int(opts['limit'])