Mercury remote controls in the file system instead of the http server

I am currently working on a switch from svn to mercurial. My needs are simple and simple, I need a source of control over the intranet in our company. I see examples everywhere for setting up remote repositories through IIS. I just donโ€™t see the point when I can share on the server.

Can I configure authorization and authentication in repositories with NTFS permissions?

Did I miss something?

thanks

+4
source share
2 answers

Putting the repository into a file share, but this is not as recommended by the Mercurial team.

See the "shared drive" section. Publishing repositories to the HG wiki:

usually limited to intranets, usually not recommended due to common problems with network file system reliability

Be sure to check out Chris Beckeโ€™s answer , because he points to another acceptable flaw (people with write access, deleting things from a network folder, whether intentionally or not).

If you know (and can live with it), then storing storage on a network share is without a doubt the easiest way to configure it.

My personal experience is that it works fine while the Windows share is on the "real" Windows machine.
At work, we use a shared resource on a real Windows server without problems, but at home I ran into problems with a NAS (which behaves like a Windows shared resource, but actually runs on Linux).
You can learn more about my impressions here:
Can you click on network sharing with Mercurial on 64-bit Windows 7?

+3
source

There are several reasons to prefer, well, anything at all for a public write file.

In essence, this boils down to the fact that there is a limited amount of damage that someone can do with the ability to push through the web method. On the other hand, the share of reading / writing is necessary for pressing, but also allows the user to delete all repos, history and everything.

Without even causing malicious intent, people (or rogue software agents) knew to go to random network resources and accidentally drag the file to where it does not belong.

The best reason to lock your computer is not because your colleagues find it funny to use an unlocked email account to send porn with HR, but because of its amazing thing, a cleaning lady can do with a rag and keyboard. It is also surprising that Music Library applications can find while scanning all the shares in the workgroup and carefully โ€œmoveโ€ and catalog them into Someones library.

+2
source

Source: https://habr.com/ru/post/905940/


All Articles