Mercurial > hg
comparison hgext/lfs/__init__.py @ 35663:a985834961f7
lfs: allow the pointer file to be viewed with `hg cat -T '{rawdata}'`
The only other interface to this data is `hg debugdata`, which requires
knowledge of the filelog revision that corresponds to the changeset. Since the
data is uninterpreted, this is an important debugging capability, and needs to
be simpler to use than that.
For non-LFS files, this displays the regular data.
Alternately, we could forego the messy function extraction in the last patch if
this template keyword can just be added unconditionally.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 16 Jan 2018 20:15:07 -0500 |
parents | a1222a8cc93b |
children | 3c838bdc57b6 |
comparison
equal
deleted
inserted
replaced
35662:91f0979f16c0 | 35663:a985834961f7 |
---|---|
50 from mercurial.i18n import _ | 50 from mercurial.i18n import _ |
51 | 51 |
52 from mercurial import ( | 52 from mercurial import ( |
53 bundle2, | 53 bundle2, |
54 changegroup, | 54 changegroup, |
55 cmdutil, | |
55 context, | 56 context, |
56 exchange, | 57 exchange, |
57 extensions, | 58 extensions, |
58 filelog, | 59 filelog, |
59 fileset, | 60 fileset, |
167 def extsetup(ui): | 168 def extsetup(ui): |
168 wrapfilelog(filelog.filelog) | 169 wrapfilelog(filelog.filelog) |
169 | 170 |
170 wrapfunction = extensions.wrapfunction | 171 wrapfunction = extensions.wrapfunction |
171 | 172 |
173 wrapfunction(cmdutil, '_updatecatformatter', wrapper._updatecatformatter) | |
172 wrapfunction(scmutil, 'wrapconvertsink', wrapper.convertsink) | 174 wrapfunction(scmutil, 'wrapconvertsink', wrapper.convertsink) |
173 | 175 |
174 wrapfunction(upgrade, '_finishdatamigration', | 176 wrapfunction(upgrade, '_finishdatamigration', |
175 wrapper.upgradefinishdatamigration) | 177 wrapper.upgradefinishdatamigration) |
176 | 178 |