I checked the code on my desktop computer and worked on it. Now I'm leaving and I want these changes on my laptop.
One solution is to simply transfer the incomplete code and then pull them on my laptop. But that would mean that I have unrelated code in the repositories, which I would like to avoid.
What is the best way to handle this? Create and apply a patch? Use hg to move incomplete change?
Here are three ways to do this. I will discuss all the pros and cons of each:
1: hg diff, diff, , hg import --nocommit
hg diff
hg import --nocommit
2. , ( hg bundle -), , update , hg rollback , ( .
hg bundle
update
hg rollback
3. . -, , . repo , ,
FWIW, 3. - , DVCS. , , , , / , , , .
, . ( ), : Mercurial?
.... , "" ( Hg, , SVN Hg):
, , , , , , , , , ( , ) , !
"" - , DVCS "", , , , ) -:
( - SVN ), , "WIP" , , , ( ) WIP . , ( ), "", , , PUSH - - ... ( "" , ..). , , .
Another interesting option (but a bit more involved) is to put the incomplete changes in MQ (first enable the mq extension) and the mq version (qinit -c). Then use qcommit to capture the current status of the fix queue and synchronize your work in progress by pulling and pressing mq.
This can be seen as uncultured, but I often use rsync to move "incomplete" repositories around SSH until I get to the point where there is something worthwhile.
Source: https://habr.com/ru/post/1722908/More articles:Passing variables from the main form to the input form - formsLinux Development C / C ++ / bash / python on windows-7 - virtualboxHow to vertically align lines of text in Perl? - perljavadoc: show also description of methods from parent class - javaTransparent Layered Views - objective-cLooking for a simple graphics component for Delphi - delphiпроверить совпадающие даты (vb.net) - dateError opening file using utf-8 codec in python - pythonSetting up OpenID delegation in a bare domain using Google App Engine or ZoneEdit - google-app-engineAppropriate strategy for tags and patches with git - gitAll Articles