sapling/hgext
Jun Wu 52b1076198 shelve: allow unlimited shelved changes per name
Previously, there is a 100 changes limit per name (bookmark or named
branch). And the user will get "too many shelved changes named %s" when they
are trying to shelve the 101th change. I hit that error message today.

This limit was introduced by the shelve extension since the beginning.
The function generating the names was called "gennames", under
"getshelvename".

There is another "gennames" under "backupfilename":

    def backupfilename(self):
        def gennames(base):
            yield base
            base, ext = base.rsplit('.', 1)
            for i in itertools.count(1):
                yield '%s-%d.%s' % (base, i, ext)

"itertools.count" is an endless counter.

Since the other "gennames" generates unlimited number of names, and the
changeset introducing the limit (49d4919d21) does not say why the limit
is useful. It seems safe to just remove the limit.

The format "%02d" was kept intentionally so existing shelved changes won't
break.
2017-06-20 23:39:59 -07:00
..
convert convert: correct the documentation about whitespace in branchmap branches 2017-06-10 02:20:14 -04:00
fsmonitor fsmonitor: don't write out state if identity has changed (issue5581) 2017-06-12 15:34:31 -07:00
highlight highlight: put pygments import inside demandimport.deactivated 2017-06-18 23:05:54 -04:00
largefiles merge with stable 2017-06-20 16:33:46 -04:00
zeroconf zeroconf: fail nicely on IPv6 only system 2017-02-08 08:08:41 -08: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 automv: use lowercase for docstring title 2017-03-23 21:15:39 -07:00
blackbox.py devel: update blackbox to use default-date 2017-05-16 18:36:08 +02:00
bugzilla.py bugzilla: fix typo in help text 2017-05-31 19:24:00 -03:00
censor.py revlog: rename constants (API) 2017-05-17 19:52:18 -07:00
children.py commands: move templates of common command options to cmdutil (API) 2017-05-14 16:19:47 +09:00
churn.py churn: use the non-deprecated template option in the examples 2017-05-08 23:05:01 -04:00
clonebundles.py clonebundles: fix missing newline character 2017-05-24 22:59:59 -04:00
color.py color: fix grammar in help text 2017-03-25 13:29:23 -04:00
eol.py util: extract pure tolf/tocrlf() functions from eol extension 2017-03-29 21:28:54 +09:00
extdiff.py cmdutil: rename template param to export to fntemplate 2017-05-20 20:15:05 -04:00
factotum.py url: extract password database from password manager 2016-06-05 23:36:23 +02:00
fetch.py commands: move templates of common command options to cmdutil (API) 2017-05-14 16:19:47 +09:00
gpg.py commands: move templates of common command options to cmdutil (API) 2017-05-14 16:19:47 +09:00
graphlog.py commands: move templates of common command options to cmdutil (API) 2017-05-14 16:19:47 +09:00
hgk.py hgk: don't use mutable default argument value 2017-03-14 23:48:25 -07:00
histedit.py changegroup: let callers pass in transaction to apply() (API) 2017-06-15 22:46:38 -07:00
journal.py commands: move templates of common command options to cmdutil (API) 2017-05-14 16:19:47 +09:00
keyword.py keyword: use context manager for rollback locking 2017-06-20 12:51:36 +01:00
logtoprocess.py logtoprocess: use lowercase for docstring title 2017-03-23 21:16:55 -07:00
mq.py commands: move templates of common command options to cmdutil (API) 2017-05-14 16:19:47 +09:00
notify.py cmdutil: pass templatespec tuple directly to changeset_templater (API) 2017-04-22 19:02:47 +09:00
pager.py pager: if old pager extensions is enabled, respect pager.attend 2017-03-13 21:43:17 -07:00
patchbomb.py patchbomb: make getaddrs function easier to work with 2017-06-13 17:43:33 -04:00
purge.py commands: move templates of common command options to cmdutil (API) 2017-05-14 16:19:47 +09:00
rebase.py rebase: use context manager for locking in pullrebase() 2017-06-19 11:18:12 -07:00
record.py commands: move templates of common command options to cmdutil (API) 2017-05-14 16:19:47 +09:00
releasenotes.py releasenotes: command to manage release notes files 2017-06-02 23:33:30 +02:00
relink.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
schemes.py schemes: use br'' literal to define bytes regexp 2017-03-09 19:41:40 -08:00
share.py share: directly use repo.vfs.join 2017-03-08 16:52:30 -08:00
shelve.py shelve: allow unlimited shelved changes per name 2017-06-20 23:39:59 -07:00
show.py cmdutil: factor out helper to create changeset_templater with literal template 2017-04-22 18:42:03 +09:00
strip.py strip: use context manager for locking and transaction in stripcmd() 2017-06-19 11:20:29 -07:00
transplant.py transplant: directly use repo.vfs.join 2017-03-08 16:52:49 -08:00
win32mbcs.py win32mbcs: avoid unintentional failure at colorization 2017-05-31 23:44:33 +09:00
win32text.py win32text: directly use repo.vfs.join 2017-03-08 16:52:57 -08:00