Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 1882
70e806f7ebb2
parent 1880
dbd4d7698310
child 1905
7ad9161c5293
equal deleted inserted replaced
1881:bab54b00f79a 1882:70e806f7ebb2
1122 1122
1123 This method ensures, that an ignore file exists. 1123 This method ensures, that an ignore file exists.
1124 1124
1125 @param project reference to the project (Project) 1125 @param project reference to the project (Project)
1126 """ 1126 """
1127 ignoreName = os.path.join(project.getProjectPath(), Hg.IgnoreFileName) 1127 ppath = project.getProjectPath()
1128 if not os.path.exists(ignoreName): 1128 if ppath:
1129 self.hgCreateIgnoreFile(project.getProjectPath(), autoAdd=True) 1129 ignoreName = os.path.join(ppath, Hg.IgnoreFileName)
1130 if not os.path.exists(ignoreName):
1131 self.hgCreateIgnoreFile(project.getProjectPath(), autoAdd=True)
1130 1132
1131 def vcsCleanup(self, name): 1133 def vcsCleanup(self, name):
1132 """ 1134 """
1133 Public method used to cleanup the working directory. 1135 Public method used to cleanup the working directory.
1134 1136

eric ide

mercurial