Actions
Defect #7272
closedMercurial test repository not compatible with old hg versions
Status:
Closed
Priority:
Normal
Assignee:
Toshi MARUYAMA
Category:
SCM
Target version:
-
Start date:
2011-01-10
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
The recently committed mercurial repository can not be read with old mercurial versions. For example, I'm getting the following error with hg 1.3:
abort: requirement 'dotencode' not supported!
In r4676, I replaced the tar.gz fixture with a hg bundle and adapted the rake task to setup the test repository. Tested with hg 1.3 and 1.7.
Toshi, can you check that it's OK?
Updated by Toshi MARUYAMA over 14 years ago
http://mercurial.selenic.com/wiki/UpgradingMercurial#Upgrading_and_downgrading_repository_formats
- For compatibility with hg < 1.7 (Nov 2010): 'hg clone --config format.dotencode=False --pull'
- For compatibility with hg < 1.1 (Dec 2008): 'hg clone --config format.usefncache=False --pull'
- For compatibility with hg < 0.9.4 (Jun 2007): 'hg clone --config format.usestore=False --pull'
Updated by Toshi MARUYAMA over 14 years ago
r4676 is great idea.
I confirmed source:trunk/test/fixtures/repositories/mercurial_repository.hg@4676 is compatible with Mercurial 1.0.
$ hg clone -U http://selenic.com/repo/hg hg-stable $ cd hg-stable $ hg update 1.0 $ make local $ LANG=C ./hg --version Mercurial Distributed SCM (version 1.0)
$ LANG=C /somewhere/hg-stable/hg unbundle ../mercurial_repository.hg /somewhere/hg-stable/mercurial/demandimport.py:46: DeprecationWarning: the sha module is deprecated; use the hashlib module instead mod = _origimport(head, globals, locals) adding changesets adding manifests adding file changes added 17 changesets with 24 changes to 13 files (+2 heads) (run 'hg heads' to see heads, 'hg merge' to merge)
Updated by Toshi MARUYAMA over 14 years ago
I confirmed that Mercurial 1.0 can access this repository.
$ cat .hg/requires revlogv1 store $ LANG=C /somewhere/hg-stable/hg tip changeset: 16:4cddb4e45f52 tag: tip parent: 6:7fab6ce80d87 user: jsmith <jsmith@foo.bar> date: Sat Jan 01 00:00:00 2000 +0900 summary: Added tag tag-init-revision for changeset 0885933ad4f6
Updated by Toshi MARUYAMA about 14 years ago
- Status changed from Resolved to Closed
- Resolution set to Fixed
Actions