sapling/hgext
Kostia Balytskyi 9b01b1d353 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.
2016-11-29 07:20:03 -08:00
..
convert py3: use pycompat.getcwd() instead of os.getcwd() 2016-11-23 00:03:11 +05:30
fsmonitor fsmonitor: be robust in the face of bad state 2016-11-25 07:30:46 -08:00
highlight extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
largefiles largefiles: handle that a found standin file doesn't exist when removing it 2016-10-27 20:06:33 +02:00
zeroconf extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
__init__.py hgext: officially turn 'hgext' into a namespace package 2016-02-27 12:56:26 +01:00
acl.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
automv.py py3: move up symbol imports to enforce import-checker rules 2016-05-14 14:03:12 +09:00
blackbox.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
bugzilla.py bugzilla: stop mentioning Pythons older than 2.6 2016-11-21 17:52:32 -05:00
censor.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
children.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
churn.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
clonebundles.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
color.py color: avoid shadowing a variable inside a list comprehension 2016-11-10 16:32:51 -05:00
eol.py eol: make sure we always release the wlock when writing cache 2016-10-13 13:47:47 +02:00
extdiff.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
factotum.py url: extract password database from password manager 2016-06-05 23:36:23 +02:00
fetch.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
gpg.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
graphlog.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
hgk.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
histedit.py spelling: fixes of non-dictionary words 2016-10-17 23:16:55 +02:00
journal.py py3: namedtuple takes unicode (journal ext) 2016-10-10 05:30:14 -07:00
keyword.py keyword: handle filectx _customcmp 2016-10-17 17:42:46 +02:00
logtoprocess.py spelling: fixes of non-dictionary words 2016-10-17 23:16:55 +02:00
mq.py py3: use pycompat.getcwd() instead of os.getcwd() 2016-11-23 00:03:11 +05:30
notify.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
pager.py py3: bulk replace sys.stdin/out/err by util's 2016-10-20 23:53:36 +09:00
patchbomb.py patch: remove unused git parameter from patch.diffstat() 2016-11-12 13:36:17 +01:00
purge.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
rebase.py rebase: refer to checkunresolved by its new name 2016-11-21 21:32:39 -05:00
record.py record: return code from underlying commit 2016-10-12 12:22:54 +02:00
relink.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
schemes.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
share.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
shelve.py shelve: move patch extension to a string constant 2016-11-29 07:20:03 -08:00
strip.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
transplant.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
win32mbcs.py win32mbcs: drop code that was catering to Python 2.3 and earlier 2016-11-21 17:48:13 -05:00
win32text.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00