Commits

Henri Sivonen committed eb84284

Fix the hg commands

  • Participants
  • Parent commits 00ba700

Comments (0)

Files changed (1)

   for mod in moduleNames:
     runCmd('"%s" co "%s" "%s"' % (svnCmd, svnRoot + mod + '/trunk/', mod))
   runCmd('"%s" co http://jing-trang.googlecode.com/svn/branches/validator-nu jing-trang' % (svnCmd))
-  runCmd('"%s" pull http://hg.mozilla.org/projects/htmlparser/ htmlparser' % (hgCmd))
+  if os.path.exists("htmlparser"):
+    runCmd('"%s" pull --rebase -R htmlparser http://hg.mozilla.org/projects/htmlparser/' % (hgCmd))  
+  else:
+    runCmd('"%s" clone http://hg.mozilla.org/projects/htmlparser/ htmlparser' % (hgCmd))
 
 def selfUpdate():
   runCmd('"%s" co "%s" "%s"' % (svnCmd, svnRoot + 'build' + '/trunk/', 'build'))