sharing across dissimilar installations
Matt Mackall
mpm at selenic.com
Sat Apr 18 21:00:30 UTC 2015
On Sat, 2015-04-18 at 02:40 +0000, Boylan, Ross wrote:
> I have some hg repositories created on MS Windows. They began a few years ago, but I kept my tortoisehg client up to date, which means they been used by quite recent mercurial's, probably 3.2
>
> Hardware failure has caused me to switch to linux with mercurial 2.2, accessing the files by cifs mount.
>
> Is this likely to work? I have already done a couple of commits.
>
> I have several concerns:
> 1) The versions of mercurial are incompatible.
Every version of Mercurial can read repos _created_ by any older
version.. and will complain otherwise. So if 'hg status' works, you're
golden. I recently discovered that the repo hosting hg itself was
created circa 0.7.. and has obviously worked without trouble since that
time. See here for more details:
http://mercurial.selenic.com/wiki/UpgradingMercurial
> 2) Spaces in path names.
Linux is -way way way- more permissive about filenames.
> 3) Windows-specific conventions, such as references to drive letters
> or backward slashes as separators, in control files.
Except in .hg/hgrc, there shouldn't be any. It's quite common to
move/share repos between Linux and Windows.
> I am not asking about differences in line end conventions in the files
> under version control; I know they exist and consider them unlikely to
> cause trouble for me.
Mercurial internally treats all files as binary; it treats a .txt the
same as a .jpg. Only commands that display diffs or the like make any
attempt to detect if a file is text... so they won't put too much
garbage on your screen.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list