Show More
@@ -87,7 +87,7 b' from mercurial import localrepo, match, ' | |||||
87 | from mercurial import scmutil, pathutil |
|
87 | from mercurial import scmutil, pathutil | |
88 | from mercurial.hgweb import webcommands |
|
88 | from mercurial.hgweb import webcommands | |
89 | from mercurial.i18n import _ |
|
89 | from mercurial.i18n import _ | |
90 |
import os, re, |
|
90 | import os, re, tempfile | |
91 |
|
91 | |||
92 | cmdtable = {} |
|
92 | cmdtable = {} | |
93 | command = cmdutil.command(cmdtable) |
|
93 | command = cmdutil.command(cmdtable) | |
@@ -450,7 +450,12 b' def demo(ui, repo, *args, **opts):' | |||||
450 | repo.commit(text=msg) |
|
450 | repo.commit(text=msg) | |
451 | ui.status(_('\n\tkeywords expanded\n')) |
|
451 | ui.status(_('\n\tkeywords expanded\n')) | |
452 | ui.write(repo.wread(fn)) |
|
452 | ui.write(repo.wread(fn)) | |
453 | shutil.rmtree(tmpdir, ignore_errors=True) |
|
453 | for root, dirs, files in os.walk(tmpdir, topdown=False): | |
|
454 | for f in files: | |||
|
455 | util.unlink(os.path.join(root, f)) | |||
|
456 | for d in dirs: | |||
|
457 | os.rmdir(os.path.join(root, d)) | |||
|
458 | os.rmdir(tmpdir) | |||
454 |
|
459 | |||
455 | @command('kwexpand', |
|
460 | @command('kwexpand', | |
456 | commands.walkopts, |
|
461 | commands.walkopts, |
General Comments 0
You need to be logged in to leave comments.
Login now