Skip to content

Commit b610cb3

Browse files
author
jingwei.li
committed
merge
2 parents 2f69df8 + f544703 commit b610cb3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def compile(filename, package = None, force = False, no_build_files = False):
8989

9090
# 未被维护的文件
9191
elif modified == None:
92-
ui.msg(u'No Source: %s' % filename)
92+
#ui.msg(u'No Source: %s' % filename)
93+
pass
9394

9495
if not no_build_files:
9596
buildfiles(package = package)

hgext/opm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
# mercurial默认开始demandimport,替换了默认的import动作,将所有import模块变成延时加载,调用时才load
1111
# 因此cssutils中的一个cssutils.codec模块没有被执行导致出错
1212
# 使用__import__避免import带来的demandimport
13+
from mercurial import demandimport
14+
demandimport.disable()
1315
opm = __import__('opm')
1416

1517
# 尝试解决demandimport带来的css编译问题
@@ -70,7 +72,7 @@ def publish(ui, repo, source = '', node = 'default', **opts):
7072
#ui.warn('%s: ignore branch %s\n' % (repo.root, node_branch))
7173
#return
7274

73-
# update当前库
75+
# update到需要编译的分支
7476
mergemod.update(repo, publish_branch, False, False, None)
7577

7678
# 生成commitlog

0 commit comments

Comments
 (0)