Skip to content

Commit 2f69df8

Browse files
author
jingwei.li
committed
merge
2 parents 179dbab + 1079798 commit 2f69df8

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

hgext/opm.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
# 因此cssutils中的一个cssutils.codec模块没有被执行导致出错
1212
# 使用__import__避免import带来的demandimport
1313
opm = __import__('opm')
14+
15+
# 尝试解决demandimport带来的css编译问题
16+
import cssutils.codec
17+
cssutils.codec.__file__
18+
1419
import commands
1520

1621
from mercurial import hg
@@ -60,12 +65,13 @@ def publish(ui, repo, source = '', node = 'default', **opts):
6065
node_branch = node.branch()
6166

6267
# 不是需要被编译的分支
63-
if node_branch != publish_branch:
64-
ui.warn('%s: ignore branch %s\n' % (repo.root, node_branch))
65-
return
68+
# 不判断分支,因为通过changegroup hook触发编译时,获取到的分支信息有可能不是default,导致不编译
69+
#if node_branch != publish_branch:
70+
#ui.warn('%s: ignore branch %s\n' % (repo.root, node_branch))
71+
#return
6672

6773
# update当前库
68-
mergemod.update(repo, None, False, False, None)
74+
mergemod.update(repo, publish_branch, False, False, None)
6975

7076
# 生成commitlog
7177
commitlog_path = os.path.realpath(os.path.join(repo.root, './commitlog.txt'))

0 commit comments

Comments
 (0)