Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 6021
49bd9194e2ea
parent 5678
0aa72754d535
child 6048
82ad8ec9548c
equal deleted inserted replaced
6020:baf6da1ae288 6021:49bd9194e2ea
1172 else: 1172 else:
1173 output, error = self.__client.runcommand(args) 1173 output, error = self.__client.runcommand(args)
1174 1174
1175 if output: 1175 if output:
1176 for line in output.splitlines(): 1176 for line in output.splitlines():
1177 if line and line[0] in "MARC!?I": 1177 if len(line) > 2 and line[0] in "MARC!?I" and line[1] == " ":
1178 flag, path = line.split(" ", 1) 1178 flag, path = line.split(" ", 1)
1179 absname = os.path.join(repodir, os.path.normcase(path)) 1179 absname = os.path.join(repodir, os.path.normcase(path))
1180 if flag not in "?I": 1180 if flag not in "?I":
1181 if fname == '.': 1181 if fname == '.':
1182 if absname.startswith(dname + os.path.sep): 1182 if absname.startswith(dname + os.path.sep):

eric ide

mercurial