Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Mercurial has no distinction between a bare repo and a non-bare repo: any repo can have a working copy or not. You can check out a working copy with `hg update somerevision`, or get rid of it with `hg update null`.

You can push to a repo with a working copy, if you like; nothing will happen to that working copy unless you run `hg update`. Since you don’t need a working copy on the server’s repo, you never run `hg update` on it, and it’s effectively what git calls a bare repository.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: