Summary: This menu item will cause a shell to be launched and `eden rage --report` to be run.
Reviewed By: chadaustin
Differential Revision: D35327029
fbshipit-source-id: b17c90386e8beb028848fa3d99927dae3c971add
Summary: This will be used in a later diff to give users a "one click" report option.
Reviewed By: chadaustin
Differential Revision: D35330514
fbshipit-source-id: 0d9f3987d788d21cebc71afc796c252eb71028a3
Summary:
The JSON string interface was used when there is no clear way to convert
between a PyObject and a Rust serde-serializable object (blackbox::Event).
Now we can convert between them easily let's avoid the extra JSON round-trip.
Differential Revision: D35236903
fbshipit-source-id: 51cd8028e459f551918777cb572e286cc1d848fe
Summary:
When uploading content to the LFS server it attempts to store the
content in an upstream server, as well as internal data stores. If either of
those fail, then the upload should be considered a failure and the client
should retry. However, D22192005 (ce7f53422f) refactored the code and accidentally updated
`internal_upload` to always return `Ok(())`.
This meant that a failure to write to the filestore wasn't propagated and so an
upload that actually failed would send an HTTP 200 to the client.
Unfortunately, when the client asks for the blob later the server doesn't know
about it.
Update the code to return `res`, so that errors are propagated.
Reviewed By: krallin
Differential Revision: D35892336
fbshipit-source-id: 5302a34fdd338975e0f0db369ed66692db0ade9f
Summary:
`testing` is non-trivial. Add some documentation to make it easier to
understand.
Differential Revision: D35118756
fbshipit-source-id: dad59472d849eb80e230a83403e8c6af48137e6c
Summary:
It seems certain bundle part is occured twice, triggering double output for
something. I didn't trace down as we plan to migrate away from unmaintainable
bundle2 stdio exchange.
For now just make the test compatible with both runners and we can revisit
later when we remove the bundle2/sshpeer techdebt.
Reviewed By: LynBusch
Differential Revision: D34915624
fbshipit-source-id: c2d53050a14ceb56d89bd0c1831f9ab32caf2e4d
Summary:
Avoid `ui.load()` in debugpython. That's known problematic. Use `ui` and `repo`
provided by `debugshell` instead.
Reviewed By: LynBusch
Differential Revision: D34915618
fbshipit-source-id: 2ca393996318b2479c3996e98d4a5695b648356c
Summary:
TestTmp uses a slightly different hgrc name: `hgrc` instead of `.hgrc`.
Just do not check the filename.
Reviewed By: DurhamG
Differential Revision: D34915625
fbshipit-source-id: 66f3f734bd47e5abaf6490b8a0bfefb6e3afc394
Summary: This makes affected tests work with debugruntest.
Reviewed By: DurhamG
Differential Revision: D34915627
fbshipit-source-id: dfa2d19c0291854f9bd3de123edd38e5c3d06bef
Summary:
Tests use `ls -l` for 2 purposes:
- Check file mode - also need `cut -c`
- Check symlink target
Use `f` and `f -m` instead for compatibility with debugruntest.
Reviewed By: DurhamG
Differential Revision: D34872629
fbshipit-source-id: 17277b9f495b8f62e28e53af9efae8084f572ec8
Summary: Pushing to bundle repo is no longer used in production.
Reviewed By: DurhamG
Differential Revision: D34872631
fbshipit-source-id: e7eb91fd818f67c0085b2971d3fe5aae04371547
Summary: `\` in heredoc for multi-line escaping is unsupported in debugruntest.
Reviewed By: DurhamG
Differential Revision: D34871318
fbshipit-source-id: 18e93a0fe8a367993c8170031c9bbc41211f3ca4
Summary: `<(echo foo)` is not supported. Use a temp file instead.
Reviewed By: DurhamG
Differential Revision: D34870111
fbshipit-source-id: dc21a4e14ed96dcb202a566ddff4b03ee3b938bc
Summary:
`sed 's/3+/3-/'` treats `+` as a literal while the shinterp stdlib treats
it as part of regex.
Avoid the issue by using `s/3[+]/3-/` that work in both `sed` impelemntations.
Reviewed By: DurhamG
Differential Revision: D34840516
fbshipit-source-id: f20648afa76f7233cee40781bb1af2fd976bdbb0
Summary:
The `hg debugpython -- ./update_to_rev0.py` uses the `util.mainio` which
escapes the `sys.stdout` capturing. Silent it so it's compatible.
Skip the `hg log -r tip 0<&-` test. In the shinterp world adding a `None` stdin
concept would be too much work.
Reviewed By: DurhamG
Differential Revision: D34840379
fbshipit-source-id: bb8ae7bd4f7761af93face27dc94c2d2ba1f63ff
Summary:
Define hghave for cmp dd diff gunzip gzip mkfifo tar umask unzip.
So they can be checked before using.
Reviewed By: DurhamG
Differential Revision: D34840382
fbshipit-source-id: c180a8cdc3d6c039606e60ff133e34ff5f8f4c11
Summary:
This makes `#require git` or `#if git` require `git` executable, if the test
result is True.
Reviewed By: DurhamG
Differential Revision: D34835692
fbshipit-source-id: 028dc90ffb9b73a3193897bdd127873c7049bec5
Summary:
The `find` implemenation in shinterp does not show dot files.
Matching coreutils `find` would mean abandoning the convenient
`glob.glob` for this special case. So I went ahead just changing
the file name.
Reviewed By: DurhamG
Differential Revision: D34835688
fbshipit-source-id: 64abeefe99f7befd671280f87609e37ecc00f091
Summary:
This makes it compatible with debugruntest.
Fixing it in shinterp properly seems too complex (ex. InterpResult might need
"hold" information per character, to handle things like `foo\**`) so I just
give up for now.
Reviewed By: DurhamG
Differential Revision: D34835696
fbshipit-source-id: e8f114ebae7bba1afbd0c14e9fcdf1b0a97f3a9e
Summary:
`sleep` is commonly used. Implement it.
While `foo &; sleep n` is fragile. `sleep 1` is useful without `foo &`
to get stable output for some `status` checks (see comments in
invalidatemtime in pytreestate for details).
Reviewed By: DurhamG
Differential Revision: D34835697
fbshipit-source-id: 6c766bae8ecc9a9419415207eb9f55036464c8e2
Summary:
The loop could be written as `for i in $(seq 213)` or use `i=$((i+1))`
instead of expr. But let's just use Python to calculate `"a\n" * 213`
so the file isn't opened 213 times.
This makes the test compatible with debugruntest.
Reviewed By: DurhamG
Differential Revision: D34835689
fbshipit-source-id: 3811c23054c6bcddff9888bb7f61cbf9216a0783
Summary: This simplifies the tests and make them more compatible with debugruntest.
Reviewed By: DurhamG
Differential Revision: D34835698
fbshipit-source-id: 3c3a49984bad78c536f1fc683f25360e26b75730
Summary: This simplifies the tests and make them more compatible with debugruntest.
Reviewed By: DurhamG
Differential Revision: D34835687
fbshipit-source-id: 2d42b620ad69372b6482ac64bff2f626da7e7842