Portable Mercurial on Windows

468 views
Skip to first unread message

Snidely

unread,
Oct 5, 2011, 2:42:11 AM10/5/11
to merc...@selenic.com
I'm running TortoiseHG on my home computers, but have to work on a
school lab computer sometimes, and I'd like to be able check in files
when I'm there.

Kinda like the OP in <http://www.selenic.com/pipermail/mercurial/2009-
August/027273.html>.

Is the advice in that correspondence still good with the 1.9.x Hg and
the 2.1.x Terrapins?

I've also looked at <http://stackoverflow.com/questions/1904419/
running-mercurial-on-a-flash-drive>.

I'll probably need at least the 32-bit version for XP, Vista, and W7
hosts; any issues with using it on 64-bit machines? Although, at 80
MB, my flash stick ought to be able to hold the 64-bit flavor for
those trips to the better Vista and W7 machines.

/dps
_______________________________________________
Mercurial mailing list
Merc...@selenic.com
http://selenic.com/mailman/listinfo/mercurial

Steve Borho

unread,
Oct 5, 2011, 12:11:43 PM10/5/11
to Snidely, merc...@selenic.com
On Wed, Oct 5, 2011 at 1:42 AM, Snidely <snide...@gmail.com> wrote:
> I'm running TortoiseHG on my home computers, but have to work on a
> school lab computer sometimes, and I'd like to be able check in files
> when I'm there.
>
> Kinda like the OP in <http://www.selenic.com/pipermail/mercurial/2009-
> August/027273.html>.
>
> Is the advice in that correspondence still good with the 1.9.x Hg and
> the 2.1.x Terrapins?
>
> I've also looked at <http://stackoverflow.com/questions/1904419/
> running-mercurial-on-a-flash-drive>.
>
> I'll probably need at least the 32-bit version for XP, Vista, and W7
> hosts; any issues with using it on 64-bit machines?  Although, at 80
> MB, my flash stick ought to be able to hold the 64-bit flavor for
> those trips to the better Vista and W7 machines.

I don't think anything has changed in this regard. You won't have the
shell extension and a few things will need to be hacked into your path
(TortoisePlink, kdiff3), but the command line hg and thg tools should
work this way.

--
Steve Borho

Alexander Grebenschikov

unread,
Oct 5, 2011, 11:23:49 PM10/5/11
to merc...@selenic.com
05.10.2011 12:42, Snidely пишет:

> I'll probably need at least the 32-bit version for XP, Vista, and W7
> hosts; any issues with using it on 64-bit machines? Although, at 80
> MB, my flash stick ought to be able to hold the 64-bit flavor for
> those trips to the better Vista and W7 machines.
You can use mingw and build it from mercurial sources:

set PYPATH=C:\python26
set MINGW=C:\MinGW
set path=%PYPATH%;%MINGW%\bin;%path%
%PYPATH%\python setup.py build --compiler=mingw32
%PYPATH%\python setup.py install --prefix=%PYPATH%

I can build it for you if need.

Snidely

unread,
Oct 6, 2011, 2:33:07 AM10/6/11
to merc...@selenic.com
On Oct 5, 8:23 pm, Alexander Grebenschikov <grebenschi...@gmail.com>
wrote:

> 05.10.2011 12:42, Snidely пишет:> I'll probably need at least the 32-bit version for XP, Vista, and W7
> > hosts; any issues with using it on 64-bit machines?  Although, at 80
> > MB, my flash stick ought to be able to hold the 64-bit flavor for
> > those trips to the better Vista and W7 machines.
>
> You can use mingw and build it from mercurial sources:
>
> set PYPATH=C:\python26
> set MINGW=C:\MinGW
> set path=%PYPATH%;%MINGW%\bin;%path%
> %PYPATH%\python setup.py build --compiler=mingw32
> %PYPATH%\python setup.py install --prefix=%PYPATH%
>
> I can build it for you if need.

No need. I just copied the TortoiseHG directories from my home
machines, set the path when I got to the target machine, and did the
DVCS actions successfully, including examining the DAG from the THG
gui.

This run was on a W7-64 machine, and the 64-bit flavor ran from the
thumb drive without hiccup.

Fpr a home project, I will take a look at doing a build as above, so
thanks for the tips.


/dps


>
> _______________________________________________
> Mercurial mailing list
> Mercur...@selenic.comhttp://selenic.com/mailman/listinfo/mercurial

Reply all
Reply to author
Forward
0 new messages