sapling/mercurial
Simon Farnsworth 0057b864bd ui: restrict length of autogenerated blocked tags
Long autogenerated blocked tags tend to be because the command has an absolute
path; at Facebook, we've had a few where the tag is thousands of characters
long (in association with the mergedriver).

Change the default to use a suffix of a command as the default tag, limiting us
to 85 characters (for a 100 character tag). This is long enough to overflow a
standard terminal (thus be obviously autogenerated), but short enough to be
readable.
2017-03-20 05:08:21 -07:00
..
cffi setup: move cffi stuff to mercurial/cffi 2016-11-09 22:08:30 +00:00
default.d mergetools.rc: find OSX FileMerge in the new location inside Xcode 4.3 2015-10-16 11:37:34 +02:00
help help: fix layout of pre-formatted text 2017-03-09 12:55:48 +09:00
hgweb hgwebdir: add support for explicit index files 2017-03-05 22:22:32 -05:00
httpclient httpclient: don't use mutable default argument value 2017-03-14 23:49:25 -07:00
pure pure: use int instead of long 2017-03-20 21:40:28 -07:00
templates gitweb: add "more" and "less" navigation links in filelog template 2017-02-22 12:09:17 +01:00
__init__.py py3: rewrite itervalues() as values() by importer 2017-03-13 08:44:57 -07:00
ancestor.py py3: add __bool__ to every class defining __nonzero__ 2017-03-13 12:40:14 -07:00
archival.py vfs: use 'vfs' module directly in 'mercurial.archival' 2017-03-02 13:30:28 +01:00
base85.c base85: clean up function definition style 2015-11-11 19:10:45 -05:00
bdiff_module.c bdiff: use Python memory allocator in fixws 2017-03-09 11:54:25 -08:00
bdiff.c bdiff: don't check border condition in loop 2016-11-20 16:56:21 -08:00
bdiff.h bdiff: split bdiff into cpy-aware and cpy-agnostic part 2016-07-13 10:46:26 +02:00
bitmanipulation.h internals: move the bitmanipulation routines into its own file 2016-06-06 13:08:13 +02:00
bookmarks.py bookmarks: abort 'push -B .' when no active bookmark 2016-06-13 23:50:26 +02:00
branchmap.py branchmap: be more careful about using %d on ints 2017-03-19 01:01:25 -04:00
bundle2.py py3: add __bool__ to every class defining __nonzero__ 2017-03-13 12:40:14 -07:00
bundlerepo.py py3: use bytearray() instead of array('c', ...) constructions 2017-03-12 03:32:21 -04:00
byterange.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
changegroup.py py3: convert the mode argument of os.fdopen to unicodes (2 of 2) 2017-02-13 22:15:28 +05:30
changelog.py util: wrap s.decode('string_escape') calls for future py3 compatibility 2017-03-17 23:42:46 +09:00
chgserver.py chg: deduplicate error handling of ui.system() 2017-02-19 01:16:45 +09:00
cmdutil.py graphlog: pass function arguments without expansion 2017-03-14 18:16:13 +09:00
color.py templater: make pad() strip color codes before computing width (issue5416) 2017-03-18 21:02:20 +09:00
commands.py commit: keep opts as byteskwargs as much as possible 2017-03-19 01:20:08 -04:00
commandserver.py py3: convert the mode argument of os.fdopen to unicodes (1 of 2) 2017-02-13 20:06:38 +05:30
compat.h compat: define ssize_t as int on 32bit Windows, silences C4142 warning 2016-07-15 23:54:56 +09:00
config.py ui: move configlist parser to config.py 2017-03-17 09:19:56 -07:00
context.py py3: add __bool__ to every class defining __nonzero__ 2017-03-13 12:40:14 -07:00
copies.py copies: remove use of manifest.matches 2017-03-07 09:56:11 -08:00
crecord.py crecord: log blocked time waiting for curses input 2017-02-15 13:34:06 -08:00
dagparser.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
dagutil.py dagutil: use absolute_import 2015-08-08 19:04:09 -07:00
debugcommands.py debugtemplate: pass ui to templater so label() works 2017-03-18 19:59:47 +09:00
demandimport.py demandimport: do not raise ImportError for unknown item in fromlist 2016-12-19 22:46:00 +09:00
destutil.py scmutil: proxy revrange() through repo to break import cycles 2017-02-19 20:00:18 +09:00
diffhelpers.c diffhelpers: fix botched return statement from e48d70075d8a 2015-01-28 13:34:20 -05:00
dirs.c dirs: use PyVarObject_HEAD_INIT 2016-10-13 13:14:14 +02:00
dirstate.py dirstate: use future-proof next(iter) instead of iter.next 2017-03-19 01:08:17 -04:00
dirstateguard.py dirstateguard: move to new module so I can break some layering violations 2016-11-21 21:29:32 -05:00
discovery.py discovery: use single quotes in use warning 2016-09-20 23:47:30 +00:00
dispatch.py dispatch: use pycompat.maplist to allow summing with args 2017-03-19 14:17:07 -04:00
dummycert.pem ssl: on OS X, use a dummy cert to trick Python/OpenSSL to use system CA certs 2014-09-26 02:19:48 +02:00
encoding.py encoding: add converter between native str and byte string 2017-03-13 09:12:56 -07:00
error.py error: use r-string to properly pop hints from **kw 2017-03-19 01:02:42 -04:00
exchange.py merge with stable 2017-03-18 12:27:52 -04:00
exewrapper.c exewrapper: prefer HackableMercurial python if availbale 2017-03-13 12:44:13 -07:00
extensions.py encoding: add converter between native str and byte string 2017-03-13 09:12:56 -07:00
fancyopts.py py3: make a bytes version of getopt.getopt() 2016-12-06 06:36:36 +05:30
filelog.py revlog: merge hash checking subfunctions 2016-12-13 14:21:36 +00:00
filemerge.py filemerge: explicitly tests for None 2017-03-15 15:11:52 -07:00
fileset.py fileset: drop false function signatures from revs() and status() docs 2017-03-09 00:07:13 +09:00
formatter.py formatter: support json formatting of long type 2017-03-13 18:31:29 -07:00
graphmod.py revset: import set classes directly from smartset module 2017-02-19 18:16:09 +09:00
hbisect.py hbisect: avoid shadowing a variable in a list comprehension 2016-11-10 16:33:23 -05:00
help.py help: make "mergetool" an alias for "merge-tools" 2017-01-13 21:21:02 -08:00
hg.py clone: get rid of ui.backupconfig 2017-03-16 14:18:50 -07:00
hook.py hook: split config reading further 2016-04-14 17:03:49 -07:00
httpconnection.py httpconnection: make sure to clear progress of httpsendfile at EOF 2017-03-18 16:02:14 +09:00
httppeer.py py3: convert the mode argument of os.fdopen to unicodes (1 of 2) 2017-02-13 20:06:38 +05:30
i18n.py py3: use pycompat.fsencode() to convert __file__ to bytes 2017-02-20 18:40:42 +05:30
keepalive.py keepalive: honor urllib2 style get_method overrides 2017-02-13 15:12:17 -05:00
localrepo.py localrepo: use node.hex instead of awkward .encode('latin1') 2017-03-20 22:06:57 -04:00
lock.py lock: do not encode result of gethostname on Python 2 2017-03-12 16:26:34 -07:00
lsprof.py lsprof: use print function 2016-01-02 11:40:53 -08:00
lsprofcalltree.py lsprofcalltree: use print function 2016-01-02 11:45:29 -08:00
mail.py encoding: factor out unicode variants of from/tolocal() 2017-03-13 09:11:08 -07:00
manifest.c manifest: use PyVarObject_HEAD_INIT 2016-10-13 13:17:23 +02:00
manifest.py manifest: refer to bytestrings as bytes, not str 2017-03-19 01:12:03 -04:00
match.py match: explicitly tests for None 2017-03-15 15:08:45 -07:00
mdiff.py mdiff: let unidiff return (diffheader, hunks) 2017-03-03 17:46:40 +01:00
merge.py merge: remove unnecessary matcher checks 2017-03-19 11:42:17 -07:00
mergeutil.py checkunresolved: move to new package to help avoid import cycles 2016-11-21 21:31:45 -05:00
minirst.py minirst: use bytes.strip instead of str.strip 2017-03-12 22:46:57 +05:30
mpatch_module.c mpatch: raise MemoryError instead of mpatchError if lalloc() failed 2016-08-07 10:06:56 +09:00
mpatch.c mpatch: raise MemoryError instead of mpatchError if lalloc() failed 2016-08-07 10:06:56 +09:00
mpatch.h mpatch: raise MemoryError instead of mpatchError if lalloc() failed 2016-08-07 10:06:56 +09:00
namespaces.py namespaces: fix name/node confusion 2016-03-16 23:12:43 +00:00
node.py dirstate: change added/modified placeholder hash length to 20 bytes 2016-11-10 02:19:16 -08:00
obsolete.py py3: add __bool__ to every class defining __nonzero__ 2017-03-13 12:40:14 -07:00
osutil.c osutil: fix potential wrong fd close 2017-03-15 20:43:12 -07:00
parser.py util: wrap s.decode('string_escape') calls for future py3 compatibility 2017-03-17 23:42:46 +09:00
parsers.c parsers: use Python memory allocator for indexObject->offsets 2017-03-09 12:09:31 -08:00
patch.py patch: add a diffhunks function yielding (diffheaders, hunks) 2017-03-03 17:20:11 +01:00
pathencode.c pathencode: use assert() for PyBytes_Check() 2016-10-13 21:42:11 +02:00
pathutil.py py3: replace os.sep with pycompat.ossep (part 2 of 4) 2016-12-17 20:02:50 +05:30
peer.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
phases.py phases: explicitly evaluate list returned by map 2017-03-11 20:53:20 -05:00
policy.py py3: add "b" prefix to string literals related to module policy 2017-03-13 04:06:36 +09:00
posix.py posix: tiptoe around tempfile module more delicately 2017-03-19 01:06:47 -04:00
profiling.py mercurial: switch to util.timer for all interval timings 2017-02-15 13:17:39 -08:00
progress.py progress: obtain stderr from ui 2016-10-20 22:12:48 +09:00
pushkey.py pushkey: use absolute_import 2015-08-08 19:57:27 -07:00
pvec.py pvec: use absolute_import 2015-12-21 21:32:58 -08:00
pycompat.py pycompat: add maplist alias for old map behavior 2017-03-19 14:12:38 -04:00
registrar.py registrar: raise a programming error on duplicated registering 2016-12-12 13:32:45 +01:00
repair.py repair: directly use repo.vfs.join 2017-03-08 16:53:39 -08:00
repoview.py py3: use portable way to stringify cache key of repoview 2017-03-12 17:20:42 -07:00
revlog.py revlog: use int instead of long 2017-03-19 01:05:28 -04:00
revset.py context: also return ancestor's line range in blockancestors 2017-01-16 17:14:36 +01:00
revsetlang.py py3: use bytestr wrapper in revsetlang.tokenize() 2017-03-16 21:36:21 +09:00
scmposix.py smcposix: pass unicode as first argument to array.array 2017-03-12 22:27:53 +05:30
scmutil.py scmutil: make function name bytes in class filecache 2017-03-16 06:32:33 +05:30
scmwindows.py py3: replace os.environ with encoding.environ (part 4 of 5) 2016-12-18 02:06:00 +05:30
server.py chgserver: make it a core module and drop extension flags 2016-10-15 14:30:16 +09:00
setdiscovery.py setdiscovery: use iterbatch interface instead of batch 2016-03-01 17:44:41 -05:00
similar.py similar: compare between actual file contents for exact identity 2017-03-03 02:57:06 +09:00
simplemerge.py vfs: use 'vfs' module directly in 'mercurial.simplemerge' 2017-03-02 13:30:58 +01:00
smartset.py py3: add __bool__ to every class defining __nonzero__ 2017-03-13 12:40:14 -07:00
sshpeer.py sshpeer: set a blockedtag when starting ssh 2017-03-06 03:25:09 -08:00
sshserver.py py3: replace os.environ with encoding.environ (part 2 of 5) 2016-12-18 01:46:39 +05:30
sslutil.py sslutil: issue warning when [hostfingerprint] is used 2017-03-09 20:33:29 -08:00
statichttprepo.py vfs: use 'vfs' module directly in 'mercurial.statichttprepo' 2017-03-02 14:49:01 +01:00
statprof.py py3: use pycompat.fsencode() to convert __file__ to bytes 2017-02-20 18:40:42 +05:30
store.py store: fix many single-byte ops to use slicing in _auxencode 2017-03-12 00:50:44 -05:00
streamclone.py mercurial: switch to util.timer for all interval timings 2017-02-15 13:17:39 -08:00
subrepo.py util: wrap s.encode('string_escape') call for future py3 compatibility 2017-03-15 23:06:50 +09:00
tagmerge.py tagmerge: use 'wvfs' instead of 'wfile' 2017-03-15 00:28:58 -07:00
tags.py py3: drop unused aliases to array.array which are replaced with bytearray 2017-03-12 11:47:02 -07:00
templatefilters.py util: wrap s.encode('string_escape') call for future py3 compatibility 2017-03-15 23:06:50 +09:00
templatekw.py templatekw: make join() escape values of extras (BC) (issue5504) 2017-03-15 23:21:30 +09:00
templater.py templater: make pad() strip color codes before computing width (issue5416) 2017-03-18 21:02:20 +09:00
transaction.py transaction: open a file with checkambig=True to avoid file stat ambiguity 2016-09-22 21:52:00 +09:00
treediscovery.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -07:00
txnutil.py txnutil: factor out the logic to read file in according to HG_PENDING 2017-02-21 01:20:59 +09:00
ui.py ui: restrict length of autogenerated blocked tags 2017-03-20 05:08:21 -07:00
unionrepo.py vfs: use 'vfs' module directly in 'mercurial.unionrepo' 2017-03-02 14:49:50 +01:00
url.py py3: replace pycompat.getenv with encoding.environ.get 2017-01-15 13:17:05 +05:30
util.h parsers: move PyInt aliasing out of util.h 2016-10-09 13:50:53 +02:00
util.py util: reference __main__ in sys.modules as a sysstr 2017-03-19 01:19:27 -04:00
verify.py verify: specify unit for ui.progress when checking files 2016-03-11 20:18:41 +08:00
vfs.py vfs: use repo.wvfs.unlinkpath 2015-01-14 01:15:26 +01:00
win32.py py3: use pycompat.getcwd instead of os.getcwd 2016-12-22 01:54:17 +05:30
windows.py encoding: factor out unicode variants of from/tolocal() 2017-03-13 09:11:08 -07:00
wireproto.py util: wrap s.encode('string_escape') call for future py3 compatibility 2017-03-15 23:06:50 +09:00
worker.py merge with stable 2017-02-28 11:13:25 -08:00