1. mst
  2. ooo340

Commits

Ivo Hinkelmann  committed 5dbaa76 Merge

contl10n: merged

  • Participants
  • Parent commits fc6d452, 5c9defa
  • Branches default

Comments (0)

Files changed (1)

File l10ntools/scripts/tool/commands.py

View file
                 add_list.append(self._cws_root_dir+"/l10n/l10n/source/"+lang+"/localize.sdf")
             add_errmsg = "Execution failed of hg add files " + str(" ".join(add_list)) + "'\n"
             out_v = utils.Util.hg_cmd(commands.add, self._log, add_errmsg, myui, repo, *add_list)        
+        
+        repo = None
+        time.sleep(1)
+        repo = hg.repository(myui, self._cws_root_dir + "/l10n/" )
 
         #### hg commit ###
         if self._commit_all == "True":         # commit all
             commit_errmsg = "Execution failed of hg commit '" + " ".join(file_list) + "'\n"             
             out_v = utils.Util.hg_cmd(commands.commit, self._log, commit_errmsg, myui, repo, *file_list , message=self._commit_msg)
 
+        repo = None
+        time.sleep(1)
+        repo = hg.repository(myui, self._cws_root_dir + "/l10n/" )
+
+
+        #time.sleep(5)
         ### hg verify ###
         if len(self._new_files) > 0 or len(self._files_modified) > 0:
             verify_errmsg = "Execution failed of hg verify\n"
             out_v = utils.Util.hg_cmd(commands.push, self._log, push_errmsg, myui, repo, self._dest_repo)
             self._log.info("Changesets pushed to " + self._dest_repo + ":")
             self._log.info(out_v)
-
+        
         os.chdir(old_path)
 
     def post(self, tool_cfg, state_cfg, env):