Pycham et contrôle source, le répertoire .dea, commettre ou ne pas commettre, c'est la question

StackOverflow https://stackoverflow.com/questions/5039442

Question

J'ai lancé un nouveau Projet Pycham et souhaitez la version avec Mercurial .

Il existe un répertoire .dea dans le répertoire de projet avec les fichiers suivants (et mon hypothèse sur laquelle vous souhaitez les modifier ou non)

  • .name - contient le nom du projet (version: oui )
  • encodingings.xml - contient les valeurs par défaut (?) Pour le codage de fichier texte (version: oui )
  • MIST.XML - Contient quelque chose à propos des composants et de quel exécutable Python à utiliser (version: non - parce qu'il code de force le chemin de python.exe)
  • modules.xml - contient une liste de modules, avec le nom du projet en eux (version: oui )
  • ProjectName.Iml (version: oui )
  • vcs.xml - Spécifie les VC à utiliser (version: oui
  • workspace.xml - semble répertorier les informations de mise en page pour Pycham Windows (version: non )

    mes hypothèses sont-elles correctes?

Était-ce utile?

La solution

All files except workspace.xml should be shared, see the FAQ.

Autres conseils

Depends on whether you want to share just the code or share the code and project settings too.

For just sharing the code, I add the following to the .hgignore file:

^.idea
^.idea/*
/*/.idea
/*/.idea/*

The patterns are a bit overkill, but they eliminate all the PyCharm/Workspace stuff.

We primarily use Subversion where I work and I frequently create a Mercurial repo on top of the Subversion checkout to play with possible tweaks and changes. If you go that route and in particular if you chain the Mercurial repos, then add these entries to the .hgignore file too:

^.svn
^.svn/*
/*/.svn
/*/.svn/*
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top