pushing error: empty or missing revlog for Mac/Contrib/PyIDE-src/Scripts/ Hold option to open a script
Adrian Buehlmann
adrian at cadifra.com
Mon Jun 13 17:19:55 UTC 2011
On 2011-06-13 18:53, higery wrote:
> Side note regarding explorer:
>
> In my testing, Windows XP's explorer (higery said they are using Windows
> XP) preserves leading spaces on filenames when copying. Microsoft
> introduced stripping leading spaces with explorer of Windows Vista.
>
>
> Oh, your saying has reminded me how I got the repository :
>
> Actually there are two computers for me, one is at my office which has
> installed the Win7 os and the other is at home which has installed
> WindowsXP os. As you say - 'Microsoft introduced stripping leading
> spaces with explorer of Windows Vista', since Win7 has the similar
> kernel of Vista, so Win7 may also have the same problem. Then I can
> remember why I have this problem on my home computer - I did the cloning
> action at office, then used a flash disk to copy the cloned repository
> from office computer to home computer, thus all the files which have the
> filenames with leading spaces will be stripped -------- so, repo
> corruption problem occured when pushing .
>
>
> To Matt and Adrian,
> Thank you very much; I can get to know the real reason causing this
> problem now.
Explorer of Windows 7 has indeed the same problem as Vista.
Mercurial already worked around this problem of Explorer by introducing
a new repo format with version 1.7 (dotencode format) which encodes
leading spaces inside .hg/store.
Look into the file .hg/requires in your repo. If it contains
revlogv1
store
fncache
dotencode
then the repo is using the current latest format which is resilient
against explorer of Vista and Windows 7 stripping leading spaces of
filenames.
Upgrading to a newer version of Mercurial will not change the format of
your existing repos. So the best thing for you is using the latest
version of Mercurial and converting your repos to the newest format.
Conversion happens if you do 'hg clone --pull oldrepo newrepo'.
See
http://mercurial.selenic.com/wiki/UpgradingMercurial#Upgrading_and_downgrading_repository_formats
More information about the Mercurial-devel
mailing list