sapling/eden/scm/edenscm/mercurial
Jun Wu 7947c378c4 context: make ctx.pareents() support >= 2 parents
Summary:
Do not assume `changelog.parents` returns 2 items.

This changes the behavior for root commits. `parents()` used to return
`[repo[nullid]]`, now it returns `[]`.

Reviewed By: andll

Differential Revision: D30784684

fbshipit-source-id: 73f58c85457391fb74b96b88dc4dcb69a25e81ac
2021-09-08 16:19:10 -07:00
..
cext dont define MIN if it is allready defined 2021-03-18 04:09:20 -07:00
cffi suppress errors in eden - batch 1 2020-07-20 13:29:51 -07:00
commands codemod: parents()[0] => p1() 2021-09-08 16:19:09 -07:00
help Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
hgweb codemod: parents()[0] => p1() 2021-09-08 16:19:09 -07:00
httpclient apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
pure apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
templates template: remove obsfate, instabilities, succsandmarkers 2020-07-02 13:22:28 -07:00
thirdparty remediation of S205607 2020-07-17 17:16:13 -07:00
utils remediation of S205607 2020-07-17 17:16:13 -07:00
__init__.py debug for merge picker 2021-04-19 12:22:27 -07:00
ancestor.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
archival.py delete the custom GzipFileWithTime class 2020-03-17 11:07:49 -07:00
autopull.py Clean Up: remove infinitepush path 2021-08-12 08:07:30 -07:00
bdiff.c use absolute includes for the native cext modules 2020-02-19 13:05:06 -08:00
bdiff.h use absolute includes for the native cext modules 2020-02-19 13:05:06 -08:00
bitmanipulation.h use absolute includes for the native cext modules 2020-02-19 13:05:06 -08:00
blackbox.py pyre: add stub for "bindings" 2020-01-31 13:18:54 -08:00
blobstore.py Clean Up: remove old snapshots extension 2021-07-23 09:57:35 -07:00
bookmarks.py changelog: remove code dealing with cl.userust() is False 2021-06-16 09:10:27 -07:00
branchmap.py repoview: further remove repoview references 2020-07-06 14:04:27 -07:00
bundle2.py apply upgraded black 21.4b2 formatting to fbsource 2021-05-04 22:16:51 -07:00
bundlerepo.py changelog: remove Python revlog-based changelog 2021-06-10 14:44:27 -07:00
byterange.py fix_map 2020-01-28 18:24:56 -08:00
changegroup.py error: generalize NetworkError to all network read errors 2021-03-08 08:06:00 -08:00
changelog2.py changelog2: make parents optionally filter nullids 2021-09-08 16:19:09 -07:00
changelog.py changelog: remove Python revlog-based changelog 2021-06-10 14:44:27 -07:00
chgserver.py ui: disable Rust progress when starting external pager 2021-03-18 13:00:24 -07:00
clone.py eagerpeer: add clone support 2021-05-06 12:13:17 -07:00
cmdutil.py codemod: parents()[0] => p1() 2021-09-08 16:19:09 -07:00
color.py color: add combined effects in fallback chains 2021-02-23 04:47:01 -08:00
commandserver.py apply upgraded black 21.4b2 formatting to fbsource 2021-05-04 22:16:51 -07:00
compat.h Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
config.py format: apply latest Black formatting 2020-05-07 09:07:49 -07:00
configitems.py add http prefix lookup to pull 2021-09-08 16:05:21 -07:00
connectionpool.py connection pool: log remote path 2020-03-11 02:18:06 -07:00
context.py context: make ctx.pareents() support >= 2 parents 2021-09-08 16:19:10 -07:00
copies.py rollout: use doublewrite changelog backend for hg-dev 2020-10-20 15:53:57 -07:00
crecord.py py3: fix crecord for non-utf8 files 2021-06-11 11:33:15 -07:00
dagop.py smartset: drop repo from iterctx 2020-12-14 13:12:42 -08:00
dagparser.py pycompat: drop sysbytes, sysstr, strurl, bytesurl 2020-01-31 17:59:53 -08:00
dagutil.py repoview: further remove repoview references 2020-07-06 14:04:27 -07:00
debugcommands.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
destutil.py destutil: exclude null in histedit rev selection 2021-03-12 17:14:17 -08:00
detectissues.py debugging: Implement "debugdetectissues" command for detecting signs of repository issues 2020-05-19 18:11:29 -07:00
dirstate.py codemod: parents()[0] => p1() 2021-09-08 16:19:09 -07:00
dirstateguard.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
discovery.py discovery: remove unused discovery logic 2021-04-12 17:11:37 -07:00
dispatch.py Add base snapshot subcommand 2021-07-30 03:24:34 -07:00
drawdag.py repoview: further remove repoview references 2020-07-06 14:04:27 -07:00
dummycert.pem Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
eagerpeer.py eagerpeer: fix push_key bookmark update 2021-07-01 14:10:34 -07:00
eden_dirstate_fs.py unicode: skip binary filenames coming from Eden 2020-03-17 09:14:35 -07:00
eden_dirstate_map.py make hg inform edenfs of newly created root manifests 2021-07-29 10:01:02 -07:00
eden_dirstate.py repoview: further remove repoview references 2020-07-06 14:04:27 -07:00
eden_update.py make hg inform edenfs of newly created root manifests 2021-07-29 10:01:02 -07:00
edenapi_upload.py edenapi: Delete commitcloud bonsai upload client code 2021-08-05 09:29:45 -07:00
edenapi.py remotefilelog: move edenapi to localrepo 2021-04-21 19:30:15 -07:00
edenfs.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
EdenThriftClient.py replace readlink_retry_estale with os.readlink in cli 2021-08-02 15:00:17 -07:00
encoding.py py3: fix conflict resolution case handling 2021-04-23 18:04:11 -07:00
error.py pyerror: expose NeedSlowPathError 2021-06-24 17:54:46 -07:00
exchange.py treemanifest: remove flatcompat feature 2021-07-13 15:04:57 -07:00
extensions.py clindex: remove the extension 2021-06-10 20:28:27 -07:00
fancyopts.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
filelog.py revlog: add some type annotations 2020-02-03 07:35:32 -08:00
filemerge.py Allow conflict editor prompts during arc pull 2021-05-13 09:40:57 -07:00
fileset.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
filesystem.py codemod: parents()[0] => p1() 2021-09-08 16:19:09 -07:00
formatter.py py3: fix test-command-template-t.py 2020-06-24 01:43:35 -07:00
fscap.py fscap: EdenFS on macOS may be case insensitive 2021-02-10 15:03:41 -08:00
graphmod.py smartset: drop repo from iterctx 2020-12-14 13:12:42 -08:00
hbisect.py bisect: make it python3 compatible 2020-04-08 19:08:51 -07:00
help.py help: hide private functions 2021-03-22 20:48:58 -07:00
helptext.py helptext: update streampager related doc 2021-06-28 07:43:20 -07:00
hg.py localrepo: improve edenapi None error reporting 2021-06-29 15:46:00 -07:00
hintutil.py hint: write to stdout in streampager 2021-06-25 15:18:56 -07:00
hook.py tracing: replace blackbox.logblocked with tracing events 2020-05-12 10:48:43 -07:00
httpconnection.py httpconnection: use Rust auth matching 2021-04-19 14:02:54 -07:00
httppeer.py Update pyre version for eden 2020-04-23 12:09:39 -07:00
i18n.py suppress errors in eden - batch 1 2020-09-28 16:03:43 -07:00
identity.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
json.py suppress errors in eden - batch 1 2020-05-21 19:32:35 -07:00
keepalive.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
localrepo.py codemod: parents()[0] => p1() 2021-09-08 16:19:09 -07:00
lock.py do not print warning about repo locking if the wait below the default threshold 2021-02-08 03:16:55 -08:00
lsprof.py suppress errors in eden - batch 1 2020-05-21 19:32:35 -07:00
lsprofcalltree.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
mail.py apply upgraded black 21.4b2 formatting to fbsource 2021-05-04 22:16:51 -07:00
manifest.py repoview: further remove repoview references 2020-07-06 14:04:27 -07:00
match.py sparse: force treematcher for sparse matcher 2021-08-24 18:28:47 -07:00
mdiff.py suppress errors in eden - batch 1 2020-05-21 19:32:35 -07:00
merge.py update: prefetch children of node to avoid remote lookups 2021-08-09 17:05:33 -07:00
mergeutil.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
metrics.py metrics: use the hgmetrics bindings for incrementing counters 2020-09-09 17:35:48 -07:00
minirst.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
mononokepeer.py use X-FB-Validated-X2PAuth-Advice header when APE provides it 2021-09-06 08:42:36 -07:00
mpatch.c use absolute includes for the native cext modules 2020-02-19 13:05:06 -08:00
mpatch.h use absolute includes for the native cext modules 2020-02-19 13:05:06 -08:00
mutation.py mutation: Rename function entriesforbundle => entriesfornodes 2021-07-13 01:56:06 -07:00
namespaces.py remove accessed bookmarks feature 2021-02-18 04:02:06 -08:00
node.py node: use binascii.Error in Python3 2020-04-08 23:46:09 -07:00
obsolete.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
obsutil.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
parser.py parser: add a function to walk through a tree 2020-10-20 16:45:43 -07:00
patch.py amend: rework "--to" to not use histedit 2021-07-13 09:08:02 -07:00
pathutil.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
peer.py pycompat: drop sysbytes, sysstr, strurl, bytesurl 2020-01-31 17:59:53 -08:00
perftrace.py tracing: add more trace values 2020-04-22 15:35:17 -07:00
phases.py changelog: remove code dealing with cl.userust() is False 2021-06-16 09:10:27 -07:00
posix.py py3: fix hg status with unicode characters in OSX 2021-02-26 16:31:45 -08:00
profiling.py profiling: do not profile debugshell command 2020-08-27 18:14:29 -07:00
progress.py do not show Rust progress in curses interface 2021-03-23 10:52:56 -07:00
pushkey.py py3: fix pushkey encoding by removing local encoding 2020-01-31 13:12:13 -08:00
pvec.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
pycompat.py pycompat: replace isinstance(i, int) with pycompat.isint(i) 2021-03-30 10:43:04 -07:00
rcutil.py pager: make "internal:streampager" the default 2021-06-17 09:33:40 -07:00
registrar.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
repair.py changelog: remove code dealing with cl.userust() is False 2021-06-16 09:10:27 -07:00
replay.py mononoke: send bonsai to hg mapping while running hg sync 2021-03-29 12:39:19 -07:00
repository.py remotefilelog: move stream_out wireprotocol to core 2020-05-12 10:23:21 -07:00
revlog.py changelog: add filternodes API 2021-04-13 17:12:47 -07:00
revset.py codemod: parents()[0] => p1() 2021-09-08 16:19:09 -07:00
revsetlang.py context: add a way to disable revnum resolution 2021-03-29 22:18:42 -07:00
rewriteutil.py smartset: make repo required for baseset 2020-12-14 13:12:42 -08:00
scmposix.py pager: make "internal:streampager" the default 2021-06-17 09:33:40 -07:00
scmutil.py doctor: work with non-revlog changelog 2021-06-10 14:44:27 -07:00
scmwindows.py pager: make "internal:streampager" the default 2021-06-17 09:33:40 -07:00
server.py util: use Rust pyprocess to implement spawndetached 2020-08-31 17:34:48 -07:00
setdiscovery.py discovery: make sample size configurable 2021-08-16 12:51:04 -07:00
similar.py py3: iter{keys,values,items} -> pycompat.iter{keys,values,items} 2020-01-28 16:27:28 -08:00
simplemerge.py mergetools: add new conflict marker format with diffs in 2021-03-10 17:29:18 -08:00
smallcommitmetadata.py debug: Add commit metadata storage and templating for marking stable commits 2020-06-10 19:29:39 -07:00
smartset.py nameset: do not resolve nullid remotely 2021-06-28 14:36:39 -07:00
sparse.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
sshpeer.py introduce ability to talk to mononoke directly 2020-11-18 07:34:38 -08:00
sshserver.py py3: fix test-bundle2-exchange.t 2020-04-13 15:28:25 -07:00
sslutil.py speed test on mononoke 2021-01-25 02:29:19 -08:00
statprof.py codemod: signal.signal -> util.signal 2020-09-18 13:28:34 -07:00
stdiopeer.py introduce ability to talk to mononoke directly 2020-11-18 07:34:38 -08:00
store.py store: always enable store and fncache 2021-05-25 19:43:45 -07:00
streamclone.py changelog: remove Python zstore support 2021-04-21 19:30:15 -07:00
streams.py changelog: remove code dealing with cl.userust() is False 2021-06-16 09:10:27 -07:00
templatefilters.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
templatekw.py template: add rev f64 compatibility 2020-11-19 12:15:36 -08:00
templatenew.py scmutil: remove meaningfulparents 2020-09-05 15:06:44 -07:00
templater.py tests: fix compatibility with ignorerevnum 2021-03-30 10:43:04 -07:00
transaction.py util: replace faultinjection with failpoint 2021-08-27 13:44:03 -07:00
treedirstate.py i18n: use _x to signal untranslated strings 2020-05-07 09:07:49 -07:00
treestate.py treestate: add p1, p2 methods 2021-09-08 16:19:09 -07:00
txnutil.py Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
types.py py3: add stub for localrepository 2020-02-03 17:07:36 -08:00
ui.py pager: make "internal:streampager" the default 2021-06-17 09:33:40 -07:00
uiconfig.py configs: delete applydynamicconfig 2021-05-04 22:18:55 -07:00
url.py py3: fix test-command-template-t.py 2020-06-24 01:43:35 -07:00
urllibcompat.py apply pyfmt with usort to opted-in sources 2020-11-10 21:25:54 -08:00
util.py util: replace faultinjection with failpoint 2021-08-27 13:44:03 -07:00
vfs.py lock: detect deadlock in a same process 2020-10-19 17:07:30 -07:00
visibility.py changelog: remove code dealing with cl.userust() is False 2021-06-16 09:10:27 -07:00
win32.py Daily arc lint --take BLACK 2021-02-26 03:57:20 -08:00
windows.py py3: fix tests on Windows 2021-03-29 12:56:48 -07:00
winutil.py py3: move checkwinfilename() to a separate file and add type hints 2020-01-31 20:18:21 -08:00
wireproto.py mononoke: support reading streaming changelog chunks with tag 2021-08-10 05:13:54 -07:00
worker.py worker: remove the forkers 2020-06-23 18:47:44 -07:00