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

Yes! Partial staging of files is amazing and I miss it sorely when I use hg. There must be a way to do it.


Use crecord. We're working on moving it into core:

https://bitbucket.org/edgimar/crecord/overview

If you want a "staging area" just use a temporary commit and keep ammending it with `hg crecord --amend`. There really is no difference between a commit and a staging area except the name. If you're afraid of pushing your WIP commit, use `hg crecord --secret` or `hg commit --secret` so that your commit will be in the secret phase and won't be pushed until you declare it draft with `hg phase --draft`.


That's a neat trick. I think it's doing it a disservice to say there's no difference except the name, though. While true, I think anyone who prefers hg to git (self included) shouldn't undersell the importance of interface.


I haven't used hg but as a Git user who uses this feature several times per day, this would be a complete deal breaker!


Last summer, a project I was working on used hg. Missing partial staging is the only reason I haven't completely switched over from git.


I use patch queues.




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

Search: