Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 660
7a1d92437921
parent 564
b3d966393ba9
child 694
d482fc1249b0
equal deleted inserted replaced
659:b53e67ae2021 660:7a1d92437921
1296 def hgPull(self, name): 1296 def hgPull(self, name):
1297 """ 1297 """
1298 Public method used to pull changes from a remote Mercurial repository. 1298 Public method used to pull changes from a remote Mercurial repository.
1299 1299
1300 @param name directory name of the project to be pulled to (string) 1300 @param name directory name of the project to be pulled to (string)
1301 @return flag indicating, that the update contained an add
1302 or delete (boolean)
1301 """ 1303 """
1302 args = [] 1304 args = []
1303 args.append('pull') 1305 args.append('pull')
1304 self.addArguments(args, self.options['global']) 1306 self.addArguments(args, self.options['global'])
1305 args.append('-v') 1307 args.append('-v')
1317 res = dia.startProcess(args, repodir) 1319 res = dia.startProcess(args, repodir)
1318 if res: 1320 if res:
1319 dia.exec_() 1321 dia.exec_()
1320 res = dia.hasAddOrDelete() 1322 res = dia.hasAddOrDelete()
1321 self.checkVCSStatus() 1323 self.checkVCSStatus()
1324 return res
1322 1325
1323 def hgPush(self, name, force = False): 1326 def hgPush(self, name, force = False):
1324 """ 1327 """
1325 Public method used to push changes to a remote Mercurial repository. 1328 Public method used to push changes to a remote Mercurial repository.
1326 1329

eric ide

mercurial