dependabot[bot]
78418389b2
cargo: bump num_cpus from 1.13.1 to 1.14.0
...
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus ) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases )
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.13.1...v1.14.0 )
---
updated-dependencies:
- dependency-name: num_cpus
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 08:11:38 -08:00
dependabot[bot]
9a4c4542bd
cargo: bump predicates from 2.1.1 to 2.1.2
...
Bumps [predicates](https://github.com/assert-rs/predicates-rs ) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/assert-rs/predicates-rs/releases )
- [Changelog](https://github.com/assert-rs/predicates-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/predicates-rs/compare/v2.1.1...v2.1.2 )
---
updated-dependencies:
- dependency-name: predicates
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 08:06:35 -08:00
dependabot[bot]
3958363777
cargo: bump clap from 4.0.18 to 4.0.22
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.18 to 4.0.22.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.18...v4.0.22 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 07:59:44 -08:00
dependabot[bot]
5b5ab1fb3e
cargo: bump regex from 1.6.0 to 1.7.0
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.6.0...1.7.0 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 07:44:24 -08:00
dependabot[bot]
e326015c2a
cargo: bump clap_complete from 4.0.3 to 4.0.5
...
Bumps [clap_complete](https://github.com/clap-rs/clap ) from 4.0.3 to 4.0.5.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.0.3...clap_complete-v4.0.5 )
---
updated-dependencies:
- dependency-name: clap_complete
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 07:41:05 -08:00
dependabot[bot]
571952dac6
github: bump github/codeql-action from 2.1.30 to 2.1.31
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2.1.30 to 2.1.31.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](18fe527fa8...c3b6fce4ee
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 07:40:08 -08:00
Martin von Zweigbergk
3c7c4e9f5c
tests: move testutils
module into separate crate
...
The `testutils` module should ideally not be part of the library
dependencies. Since they're used by the integration tests (and the CLI
tests), we need to move them to a separate crate to achieve that.
2022-11-08 07:29:35 -08:00
Martin von Zweigbergk
924926a100
changelog: fix typo ("specity")
2022-11-07 13:48:48 -08:00
Yuya Nishihara
fa3ad16bf2
revset: add present(set) predicate that suppresses NoSuchRevision error
...
This is copied from Mercurial. Typical use case I have in mind is
"present(master) | present(main)" in stock revset.
2022-11-07 21:41:54 +09:00
Yuya Nishihara
ed14292aa2
revset: add EagerRevset::empty() constructor for convenience
2022-11-07 21:41:54 +09:00
Benjamin Saunders
46fe0791e8
cli: fix rebase error
2022-11-06 18:50:58 -08:00
Benjamin Saunders
210b54afd7
cli: hide cursor during progress display
2022-11-06 18:15:22 -08:00
Benjamin Saunders
472b6926e5
cli: define drop+signal guard helper
2022-11-06 18:15:22 -08:00
Benjamin Saunders
135e4d64dd
cli: clean up progress error handling
2022-11-06 17:31:29 -08:00
Benjamin Saunders
d69eb808df
git: prompt for credentials when needed
2022-11-06 17:31:29 -08:00
Benjamin Saunders
fd0a065801
cli: remove lifetime from Progress
2022-11-06 17:31:29 -08:00
Benjamin Saunders
a23cc8eb5a
cli: factor out RemoteCallbacks setup
2022-11-06 17:31:29 -08:00
Benjamin Saunders
88a4f83cf8
git: factor ssh key lookup out of lib
2022-11-06 17:31:29 -08:00
Benjamin Saunders
b55c4ae0a3
git: move progress callback into a struct
2022-11-06 17:31:29 -08:00
Martin von Zweigbergk
a27da7d8d5
repo: remove last mutating method from ReadonlyRepo
...
`ReadonlyRepo::reindex()` is only used in `jj debug reindex`, and it
can be implemented by creating a new instance instead of mutating
`ReadonlyRepo`.
2022-11-06 16:43:54 -08:00
Ilya Grigoriev
cf3b6ee2c9
Include file list when editing split commit description
...
Example:
JJ: Enter commit description for the first part (parent).
Better split commit message
JJ: This part contains the following changes:
JJ: M src/formatter.rs
JJ:
JJ: Lines starting with "JJ: " (like this one) will be removed.
2022-11-06 13:51:28 -08:00
Martin von Zweigbergk
a86de96bd4
cli: replace "current checkout" by "working-copy commit"
2022-11-05 22:56:14 -07:00
Martin von Zweigbergk
1d97f39da1
cleanup: avoid an unnecessary Box
for argument to formatter
...
I think this cleanup was enabled by a recent refactoring that replaced
a trait object by a type parameter (3392e83486
).
2022-11-05 22:49:54 -07:00
Yuya Nishihara
2681e8f908
repo: use OnceCell instead of Mutex<Option<_>> to store index
...
This is perfect use case of OnceCell per the safety comment in index().
2022-11-06 13:54:25 +09:00
Ilya Grigoriev
93b7b34871
Add --config-toml command-line argument for additional TOML config
...
Unfortunately, TOML requires quotes around the argument. So, the
usage is `jj --config-toml ui.color=\"always\"` in bash. The plan is
to eventually have a `--config` option with simpler syntax for
simple cases.
As discussed in https://github.com/martinvonz/jj/discussions/688 .
2022-11-05 21:21:33 -07:00
Yuya Nishihara
5d42c9ebca
cli: handle init destination error gracefully
2022-11-05 22:50:29 +09:00
Martin von Zweigbergk
61468ed126
commit_builder: remove redundant for_open_commit()
...
The function is now the same as `for_new_commit()`, except that it
accepts only one parent.
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
6703810c6e
backend: remove Commit::is_open
field from data model
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
91ee32b183
templater: drop support for open
template keyword
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
6320f24360
cli: remove open
/close
commands
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
a6dd84dc5c
tests: avoid about-to-be-deleted open
template keyword
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
5a4c463dc0
tests: avoid about-to-be-deleted close
command
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
21cda3431c
cli: drop support for ui.enable-open-commits
config
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
f02d92a3fe
cli: add commit
as its own command (not an alias for close
)
...
It seems very likely that we're going to remove support for open
commits, but it's still useful to have a `commit` command that lets
the user enter a description and starts a new change. Calling it
`commit` seems good to make the transition from other VCSs simpler.
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
ea576a8327
test_git_colocated: remove an unnecessary git import
...
The whole file is about the colocated case, where we automatically
import and export on every command, so there should be no reason to
call `git import` here.
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
1bab9db28e
test_rebase_command: avoid unnecessary close
command
...
Closing the working-copy commit doesn't seem to add anything to the
tests.
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
4399ef54c1
test_rebase_command: avoid an unnecessary special case
...
`jj new` can be used with 1 or more arguments to create non-merge
commits or merge commits.
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
d09a8f50df
tests: delete obsolete smoke test
...
The smoke test was useful a year ago, when our CLI test environment
was still annoying enough to use that there were very few tests. We
now have enough tests that the smoke test is not needed.
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
c8c4497ea0
docs: describe the conflict-resolution workflow without open commits
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
6dd91cf1c1
test_mut_repo: also run tests with Git backend
...
I haven't tried to figure out when it happened, but these tests seem
to consistently pass now.
2022-11-05 06:14:37 -07:00
Martin von Zweigbergk
6f2359c36d
lib: remove ineffective enabling of map_first_last
...
If I'm reading this attribute correctly, it says that if the
`map_first_last` feature is enabled, then we should enable the
`map_first_last` feature, which seems like it would not have any
effect. We started getting warnings from the nightly compiler about
this line because it tries to enable a feature that's stable in that
version.
2022-11-05 06:07:27 -07:00
Yuya Nishihara
f62aafa79f
repo: comment about safety implication of view/view_dirty
2022-11-05 00:13:26 +09:00
Yuya Nishihara
f26c5c1a05
repo: turn off view_dirty flag by enforce_view_invariants()
...
Otherwise enforce_view_invariants() could mutate view while its reference
is alive.
2022-11-05 00:13:26 +09:00
Ilya Grigoriev
2b8dabaae4
Fixes suggested by new version of Clippy
2022-11-03 21:38:16 -07:00
Martin von Zweigbergk
0870c47559
cli: on init, don't crash when Git repo doesn't exist
2022-11-03 19:27:17 -07:00
Martin von Zweigbergk
650853401d
tests: replace test env path in output by $TEST_ENV
...
Mercurial's test runner does something like this.
I considered replacing `\` by `/` everywhere, but we use `\` in
graph-log output quite frequently, so it doesn't seem worth it.
2022-11-03 19:27:17 -07:00
Yuya Nishihara
1c4888f769
revset: report bad number of arguments with span
2022-11-03 09:41:04 +09:00
Yuya Nishihara
b938b5e907
revset: report invalid string argument with span
...
Also dropped "found: {}" from the error summary as it's obvious.
2022-11-03 09:41:04 +09:00
Yuya Nishihara
aeee0acd08
revset: report unknown function with span
2022-11-03 09:41:04 +09:00
Yuya Nishihara
fdbd44571d
revset: report unparsable file path with span
2022-11-03 09:41:04 +09:00