How I can commit new files to Mercurial repository?

The question is about the files copied from external sources.
For example in Netbeans I can synchronize local files with ones deployed on server.
And new files from the server can be simply committed to the repository.
But in phpstorm I can not find such an easy way. The only way I've found is to add "Unversioned Files" to VCS in the Changes View.
May be I'm missing something?

Windows 7, PhpStorm 5.0.4, TortoiseHg 2.6.2 (with Mercurial-2.4.2)

5 comments

But in phpstorm I can not find such an easy way. The only way I've found is to add "Unversioned Files" to VCS in the Changes View.

Isn't it the standard way of adding new files to Mercurial repository?
I'm not sure that do you mean by "I can synchronize local files with ones deployed on server. And new files from the server can be simply committed to the repository." Could you please clarify the workflow you need?

0

In Netbeans you have no need in "adding files to VCS" step.
All files copied to the project directories from external places are marked as "Added". And you can simply "commit directory".
PhpStorm marks such files as "Unknown". So you need to mark these files manually in order to commit them.

0

If you copy the files right in PhpStorm (for example, drag them from Explorer to PhpStorm's Project view, or if you execute a task from PhpStorm that produces these files (for example, synchronize with deployed version, or run a controller generator)), you will be prompted to add all these files. You even can tell the IDE to add files automatically without prompt (Settings | Confirmation | When files are created).

This however is not done if files are copied externally.

0

Kirill.Likhodedov@jetbrains.com wrote:

If you copy the files right in PhpStorm (for example, drag them from Explorer to PhpStorm's Project view, or if you execute a task from PhpStorm that produces these files (for example, synchronize with deployed version, or run a controller generator)), you will be prompted to add all these files. You even can tell the IDE to add files automatically without prompt (Settings | Confirmation | When files are created).

This however is not done if files are copied externally.

The problem is that I am not "prompted to add all these files" after I "synchronize with deployed version".
I deleted .WebIde50 directory, reinstalled PhpStorm and several times tried to began new projects (from different sources) but the only new files prompted to add are those from .idea directory.



Attachment(s):
nothing_to_commit.JPG
changes.JPG
synchro.JPG
confirmation.JPG
0

There is an issue for this feature, feel free to vote and/or watch it.

0

Please sign in to leave a comment.