Bookcase and UnShelving TortoiseHG code on two separate computers?

Can I postpone some code that I worked on at work with TortoiseHG. Go home .. pull / merge / update ... and then UnShelve and keep working at home?

Does TortoiseHG offer this?

At work, I created a new shelf and added all my β€œtouched” files to the shelf. But when I returned home, I could not find / see the shelf, etc.

+8
source share
4 answers

A shelf is just a file in a local copy of the repository, so if you are working from another computer, you will not see the shelf.

Note. The implementation of TortoiseHg is simply to create diff in the .hg\shelve file, so you can email the file home and put it in the .hg folder ( .hg careful not to destroy the existing shelf, of course!)

+13
source

MQ with pull | push, including mq-patches, could be a more natural way

+2
source

On Windows, you can automatically sync shelves using a cloud storage synchronization service such as DropBox or Google Drive. Move the shelf directory (in .hg) to the cloud storage folder and replace it with the directory. You can create a directory connection by running it in the .hg directory:

 mklink /h shelves C:/Users/<username>/Google Drive/shelves 

Of course, replace the target with any place that you are actually using. Repeat this on all computers on which you are using Mercurial.

+1
source

You can put the files you are working on in the Dropbox public folder (or similar).
Thus, you will always have a synchronized copy of your file on multiple computers.
This may not be the cleanest solution, but it works.

-one
source

All Articles