temp directory.

Michael Diamond dimo414 at gmail.com
Wed Nov 17 15:38:39 CST 2010


On Wed, Nov 17, 2010 at 12:25 PM, Paolo Minazzi <paolo.minazzi at gmail.com>wrote:

>  If you want to avoid needless writes on the USB pen, I'd suggest doing
>> all your work on a separate clone on the hard disk, and push to the
>> pen drive after commit. Mercurial won't need a working copy inside the
>> pen drive repository, and it'll only write what's needed to record the
>> new revisions. And you'd get the additional benefit of an independent
>> separate copy of your project's whole history.
>>
>> Regards,
>> Wagner
>>
>
> Hi Wagner,
> thanks for your reply.
> Excuse me. My case is a little different.
> I have two PCs for developing.
> I want avoid to continue to copy/clone repository.
> My idea is to use only a USB pen, modify sources on it and do the build on
> harddisk.

What do you mean you want to avoid cloning the repository?  One of the key
benefits of a DVCS like Mercurial is the ease with which you can branch and
merge again.  If you are keeping your master repository on media that you
want to minimize writes to, then you want to plug it into a computer, create
a local clone on that computer, work/build on it, make your commits, and
when you're done with the computer, 'hg push' in the local clone will put
everything you did locally back onto the thumb drive, with minimal writing
to the flash memory.


> I have seen that if I use
>
>> mount -remount,ro /my_code (my_code is on the USB pen)
>>
> "hg diff" does not work because it is a read-only filesystem.
> This means that "hg diff" try to write files on my USB pen.
> I want avoid this.
>
> I'd like the mercurial had the possibility to set an environment variable
> to set temp directory.
> I have not found it.
> Maybe should I patch mercurial/util.py ? I don't know python ... :=(
>
> I use mercurial 0.9.4 on linux.
>
0.9.4 is almost three and a half years out of date.  You should upgrade to
1.7.1, there are countless benefits.

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20101117/b9fd449b/attachment.htm>


More information about the Mercurial mailing list