##// END OF EJS Templates
shelve: move patch extension to a string constant...
shelve: move patch extension to a string constant We are using 'name + ".patch"' pattern throughout the shelve code to identify the existence of a shelve with a particular name. In two cases however we use 'name + ".hg"' instead. This commit makes 'patch' be used in all places and "emphasizes" it by moving 'patch' to live in a constant. Also, this allows to extract file name without extension like this: f[:-(1 + len(patchextension))] instead of: f[:-6] which is good IMO. This is a first patch from this initial "obsshelve" series. This series does not include tests, although locally I have all of test-shelve.t ported to test obs-shelve as well. I will send tests later as a separate series.

File last commit:

r29091:5573b0f8 stable
r30554:1775975d default
Show More
control
53 lines | 1.6 KiB | text/plain | DebianControlLexer
Augie Fackler
debian: switch to using debhelper and dh_python2 to build debs...
r26148 Source: mercurial
Augie Fackler
builddeb: new script for building a deb package...
r24971 Section: vcs
Priority: optional
Augie Fackler
debian: switch to using debhelper and dh_python2 to build debs...
r26148 Maintainer: Mercurial Developers <mercurial-devel@selenic.com>
Build-Depends:
Sean Farley
debian: fix lintian warning about debhelper...
r29047 debhelper (>= 9),
Augie Fackler
debian: switch to using debhelper and dh_python2 to build debs...
r26148 dh-python,
Sean Farley
debian: add missing netbase dependency...
r28985 netbase,
Sean Farley
debian: add missing python-all-dev dependency
r28982 python-all,
Sean Farley
debian: add missing python-docutils dependency
r28983 python-all-dev,
Sean Farley
debian: add missing zip/unzip dependencies
r28984 python-docutils,
Sean Farley
debian: alphabetize build deps
r29048 unzip,
zip
Augie Fackler
debian: switch to using debhelper and dh_python2 to build debs...
r26148 Standards-Version: 3.9.4
X-Python-Version: >= 2.6
Package: mercurial
Depends:
python,
${shlibs:Depends},
${misc:Depends},
${python:Depends},
mercurial-common (= ${source:Version})
Architecture: any
Description: fast, easy to use, distributed revision control tool.
Mercurial is a fast, lightweight Source Control Management system designed
for efficient handling of very large distributed projects.
.
Its features include:
* O(1) delta-compressed file storage and retrieval scheme
* Complete cross-indexing of files and changesets for efficient exploration
of project history
* Robust SHA1-based integrity checking and append-only storage model
* Decentralized development model with arbitrary merging between trees
* Easy-to-use command-line interface
* Integrated stand-alone web interface
* Small Python codebase
Package: mercurial-common
Augie Fackler
builddeb: new script for building a deb package...
r24971 Architecture: all
Augie Fackler
debian: switch to using debhelper and dh_python2 to build debs...
r26148 Depends:
${misc:Depends},
${python:Depends},
Recommends: mercurial (= ${source:Version}), ca-certificates
Sean Farley
debian: add wish to suggests...
r29091 Suggests: wish
Augie Fackler
debian: switch to using debhelper and dh_python2 to build debs...
r26148 Breaks: mercurial (<< ${source:Version})
Replaces: mercurial (<< 2.6.3)
Description: easy-to-use, scalable distributed version control system (common files)
Mercurial is a fast, lightweight Source Control Management system designed
for efficient handling of very large distributed projects.
.
This package contains the architecture independent components of Mercurial,
and is generally useless without the mercurial package.