3 # Copyright 2005 Matt Mackall <mpm@selenic.com> |
3 # Copyright 2005 Matt Mackall <mpm@selenic.com> |
4 # |
4 # |
5 # This software may be used and distributed according to the terms |
5 # This software may be used and distributed according to the terms |
6 # of the GNU General Public License, incorporated herein by reference. |
6 # of the GNU General Public License, incorporated herein by reference. |
7 |
7 |
8 import os, re, sys, signal |
|
9 import fancyopts, ui, hg, util |
|
10 from demandload import * |
8 from demandload import * |
11 demandload(globals(), "mdiff time hgweb traceback random signal") |
9 demandload(globals(), "os re sys signal") |
12 demandload(globals(), "socket errno version") |
10 demandload(globals(), "fancyopts ui hg util") |
|
11 demandload(globals(), "hgweb mdiff random signal time traceback") |
|
12 demandload(globals(), "errno socket version") |
13 |
13 |
14 class UnknownCommand(Exception): pass |
14 class UnknownCommand(Exception): pass |
15 |
15 |
16 def filterfiles(filters, files): |
16 def filterfiles(filters, files): |
17 l = [ x for x in files if x in filters ] |
17 l = [ x for x in files if x in filters ] |