Show More
@@ -328,8 +328,7 b' def demo(ui, repo, *args, **opts):' | |||||
328 | ui.note('\nhg -R "%s" branch "%s"\n' % (tmpdir, branchname)) |
|
328 | ui.note('\nhg -R "%s" branch "%s"\n' % (tmpdir, branchname)) | |
329 | # silence branch command if not verbose |
|
329 | # silence branch command if not verbose | |
330 | quiet = ui.quiet |
|
330 | quiet = ui.quiet | |
331 |
|
|
331 | ui.quiet = not ui.verbose | |
332 | ui.quiet = not verbose |
|
|||
333 | commands.branch(ui, repo, branchname) |
|
332 | commands.branch(ui, repo, branchname) | |
334 | ui.quiet = quiet |
|
333 | ui.quiet = quiet | |
335 | for name, cmd in ui.configitems('hooks'): |
|
334 | for name, cmd in ui.configitems('hooks'): | |
@@ -363,10 +362,9 b' def files(ui, repo, *pats, **opts):' | |||||
363 | ''' |
|
362 | ''' | |
364 | status = _status(ui, repo, *pats, **opts) |
|
363 | status = _status(ui, repo, *pats, **opts) | |
365 | modified, added, removed, deleted, unknown, ignored, clean = status |
|
364 | modified, added, removed, deleted, unknown, ignored, clean = status | |
|
365 | files = modified + added + clean | |||
366 | if opts.get('untracked'): |
|
366 | if opts.get('untracked'): | |
367 |
files = |
|
367 | files += unknown | |
368 | else: |
|
|||
369 | files = modified + added + clean |
|
|||
370 | files.sort() |
|
368 | files.sort() | |
371 | kwfiles = [f for f in files if _iskwfile(f, repo._link)] |
|
369 | kwfiles = [f for f in files if _iskwfile(f, repo._link)] | |
372 | cwd = pats and repo.getcwd() or '' |
|
370 | cwd = pats and repo.getcwd() or '' |
General Comments 0
You need to be logged in to leave comments.
Login now