Yuya Nishihara
17b45d642f
cli: add "--limit N" option to log-like commands
...
Copied from Mercurial. This isn't a revset predicate since our revset is
conceptually unordered.
2023-08-11 10:40:40 +09:00
Yuya Nishihara
b2101d15c8
cli: detect .git symlink as a colocated workspace
...
Maybe we could load GitBackend without resolving .git symlink, but that would
introduce more subtle bugs. Instead, we calculate the expected Git workdir path
from the canonical ".git" path.
Fixes #2011
2023-08-10 14:53:54 +09:00
Yuya Nishihara
97b6eb2684
cli: clean up .git directory if "jj git clone --colocate" failed
2023-08-10 07:18:06 +09:00
Yuya Nishihara
6625e91a4b
cli: send "Failed to clean up" message to stderr
2023-08-10 07:18:06 +09:00
Yuya Nishihara
d039008db8
cli: add tests for failed "jj git clone"
...
Perhaps, the message "(os error 39)" isn't portable, but I don't care since
it will be fixed by later patch.
2023-08-10 07:18:06 +09:00
Ilya Grigoriev
a9e5e97025
test_git_push: Test git.push-branch-prefix
config
2023-08-07 19:10:10 -07:00
Ilya Grigoriev
add867cfae
test_git_push: use -c instead of --change occasionally
2023-08-07 19:10:10 -07:00
Martin von Zweigbergk
0075174308
tests: move tests/
under cli/
so they're run again
...
Thanks to @ilyagr for noticing that they should be moved.
2023-08-05 06:18:59 +00:00