8000 Tags · Mizuchi/sapling · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: Mizuchi/sapling

Tags

0.2.20241203-120811+a2174689

Toggle 0.2.20241203-120811+a2174689's commit message
fix(scm-prompt): suppress cd output (facebook#985)

Summary:
If a user has a `chpwd` hook that prints output, it will be prepended to the
`dir` variable which breaks the prompt. This change suppresses the output of
`cd` to prevent this.

Alternatively I considered doing `cd -q` to skip running the chpwd hook, but
decided against it.

Pull Request resolved: facebook#985

Test Plan:
```zsh
$ zsh --no-rcs
$ source ~/workspace/github.com/facebook/sapling/eden/scm/contrib/scm-prompt.sh && _scm_prompt
# things should be fine
$ say_hi() { echo hello } && chpwd_functions+=(say_hi) && _scm_prompt
```
prior to this commit, the prompt would be broken. After this commit, it should
be fine.

Background: in my particular case, I have a `chpwd` hook that
[sources custom scripts](https://github.com/vegerot/dotfiles/blob/032f88715fa2911bec6b3c09aa012145bb1dae7e/.zshrc#L250-L252)
depending on the directory, and will tell me if it does so. This was breaking
the prompt, so I added this change to fix it.

Reviewed By: quark-zju

Differential Revision: D66384725

fbshipit-source-id: e03d18887a27fc6c55da1dc7347eacf0fa38cde7

0.2.20240718-145624+f4e9df48

Toggle 0.2.20240718-145624+f4e9df48's commit message
stats: add new counters to existing docs

Summary:
# Context

I added new stats in D58492412, so now I have to document them. I've updated the wiki, but I still need to update the markdown docs stored in the repo.

# This diff

Updates the stats docs to match reality.

Reviewed By: fanzeyi

Differential Revision: D59932131

fbshipit-source-id: fe17c2ee986e182d00d35121827346e5c210ba1a

0.2.20240219-172743+3e819974

Toggle 0.2.20240219-172743+3e819974's commit message
alerts: make it compatible with Python3.8 (facebook#838)

Summary:
`re.Pattern[str]` is not valid in Python 3.8

Pull Request resolved: facebook#838

Test Plan:
```
Python 3.8.17 (default, Jul  9 2023, 20:57:35)
[Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> from typing import Optional
>>> show_after_crashes_regex: Optional[re.Pattern[str]] = None
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'type' object is not subscriptable
>>> show_after_crashes_regex: Optional[re.Pattern] = None
>>>
```

Reviewed By: zzl0

Differential Revision: D53903964

fbshipit-source-id: 412f4ad5d6011b0da70c47f31f6c919b9c6a8037

0.2.20240214-082733+bb32ee8a

Toggle 0.2.20240214-082733+bb32ee8a's commit message
Update commit sync config and CommitSyncRepos

Summary:
This diff adds a new field to the `CommitSyncRepos` and `CommitSyncer` structs, which stores the map from submodule path to its Mononoke repo instance.

This map will be used in the `rewrite_commit` function in `eden/mononoke/commit_rewriting/cross_repo_sync/src/lib.rs` to support expanding git submodule file changes.

One annoying thing about this change is that **these structs are used in many places**, but not all of them will actually be rewriting commits, meaning that **they don't need to load the repo's submodule dependencies**.

Instead of passing empty hashmaps everywhere, I decided to set the field to optional, so I explicitly set to `None` where this is not needed.
I added `TODO(T174902563)` to all code pointers that I think will need to load these repos. I'll review each one in more detail after this diff and will implement the code pointers where they're needed.

In the diff where I actually start expanding submodules (D52833563) I'll check if the map is set before starting the expand codepath.

FYI, I also added a TODO to possibly add unit tests for this later. TBH, since I'll invest significant time on integration tests, I'm not sure if adding unit tests will be worth the time spent, because this workflow is hard to really reproduce in unit tests, since it involves creating git repos and using submodules (i.e. which is way simpler in integration/E2E tests).

Reviewed By: mitrandir77

Differential Revision: D53316026

fbshipit-source-id: 29b9c1f3f58784863ce81a03f489dc73cd9fb2f9

0.2.20240116-133042+8acecb66

Toggle 0.2.20240116-133042+8acecb66's commit message
AnimatedReorderGroup: ignore small distance animation to workaround V…

…SCode button rendering

Summary:
I notice that when committing, while the optimistic state matches the final
state, the commits below moves up and down unnecessarily.

Upon debugging using a breakpoint in AnimatedReorderGroup when it decides to
animate, I found a 4px animation, and the VSCode buttons [Uncommit] [Split]
were in its "primary" style, with a larger height first rendered. Apparently
the VSCode button then change to the specified "icon" style, with a different
height, but it does not do that in the first render. There are enough pitfalls
in VSCode toolkit we might want to just replace it... but for now let's
workaround the issue by ignoring small distance animation.

Screenshot when hitting the breakpoint - buttons have wrong style and height:
 {F1272099178}

Reviewed By: zzl0

Differential Revision: D52667618

fbshipit-source-id: c183d7c60ce0e5da19afd39bf696cff89f5650a3

0.2.20231113-145254+995db0d6

Toggle 0.2.20231113-145254+995db0d6's commit message
tests: disable fsmonitor.fallback-on-watchman-exception

Summary: This can cover up unexpected bugs/crashes in Watchman integration, so don't fall back for tests.

Reviewed By: quark-zju

Differential Revision: D51265960

fbshipit-source-id: cd97cc38e5a9a5ee333aff5b18cb9dd2cb779298

0.2.20231111-162854+16d9bad6

Toggle 0.2.20231111-162854+16d9bad6's commit message
rebase: always set base label

Summary: it gives users more information about the base commit

Reviewed By: muirdm

Differential Revision: D50822903

fbshipit-source-id: 97ce6553bfa82a7a228c8a692470d40c2abf8ace

0.2.20231109-183451+14d92511

Toggle 0.2.20231109-183451+14d92511's commit message
makefile: remove setup.py install for install-oss

Summary: since our `sl` is a single binary, we don't need those Python files

Reviewed By: sggutier

Differential Revision: D51181314

fbshipit-source-id: 715ffdef65d67e7eddd49697b59690f029487365
0