-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Rename jj backout
to jj revert
#5688
Comments
In my opinion both |
To me, |
I don’t think being used in Git is an argument against a name, though, if it’s better than the Mercurial name (and I don’t think being used in Mercurial is an argument for a name either, really). I think Personally Personally I haven’t heard a name I like better than |
If it being used in Git is not an argument against it then it neither is one in favor of it. Since Jujutsu actually is something new, some unfamiliarity should be a given for users coming from Git, but that is not a bad thing. |
I think I also like Is it worth coordinating a rename with the change in behavior we've talked about (#2802)? We could do it by adding |
@PhilipMetzger That's a reasonable assessment based on the OP. Re-reading my OP, I can see how it came across as "This is what is used in The reality is, I simply think "revert" is better terminology here, and is what I use in day-to-day parlance when speaking with colleagues, e.g. it feels natural to me to say to someone "Could you please revert yesterday's change?" but appreciate this could be a cultural difference. |
I just think that either previous systems are irrelevant and we shouldn’t talk about them at all, or familiarity with Git can only, all else being equal, be a positive – perhaps a very mild positive, but not a negative, as long as the name is good on its own merits and the familiarity doesn’t lead to an inaccurate perception. If I thought
If you mean making |
I reread the help and it still seems like |
Yes, and that presumably stems from Git's dominance since it is the thing you're used to (like when you say you merge a PR/MR, etc). In Mercurial-like systems it is natural to say "backout the Changeset ". See Saplings history for an example.
I disagree that it is not a negative, as it gives people the perception that Jujutsu just is another frontend for Git which may seem true now, but won't be in the future. It also carries all the baggage from Git's model with it.
I didn't say it was a bad name, it just carries a association which I deem to not favor us in the future. I prefer
SGTM |
Since I'm conscious of this issue stagnating, and generally not a fan of leaving issues open indefinitely as they clutter up the issue tracker, do we have consensus on renaming to For me personally, since #5701 is now resolved, I don't mind whatever the final decision is. |
I remain in favour of If we can’t come to a consensus on the colour of the bikeshed then maybe we could ask the maintainer team to make a decision. I agree that stalling out is not ideal and that |
[Emphasis added] This sounds like a win-win? Especially if the new I like backout and think it is a better name than revert (I remember my initial confusion that git revert created a new commit rather than undoing the creation of my old one). Despite this, I favour the above proposal.
This is an interesting point. Abandon and restore are (conceptually) inverses. Each is idempotent. Backout/revert is its own inverse (so actually Incidentally, I never really used |
FWIW, my main hesitation about |
Feel free to send a PR for the rename. I think it would be even better if someone can find time to implement |
(#5847 may help with that.) |
I'm happy to send a PR to add the |
If the majority wants |
This adds a revert command which is similar to backout, but adds the `--destination`, `--insert-after`, and `--insert-before` optoins to customize the location of the new reverted commits. `jj backout` will subsequently be deprecated. Closes #5688.
This adds a revert command which is similar to backout, but adds the `--destination`, `--insert-after`, and `--insert-before` optoins to customize the location of the new reverted commits. `jj backout` will subsequently be deprecated. Closes #5688.
This adds a revert command which is similar to backout, but adds the `--destination`, `--insert-after`, and `--insert-before` optoins to customize the location of the new reverted commits. `jj backout` will subsequently be deprecated. Closes #5688.
Forking this discussion from #5676 (comment)
The name of this subcommand is something that stood out to me from the moment I started using
jj
and instinctively looked for arevert
subcommand in the output ofjj --help
. Revert feels like a naturally better name to me, coming from Git.Note
Does anyone strongly prefer "back out"? Our current template is identical to Git's except that Git says "revert". I find "back out" somewhat awkward and not more accurate, so I would prefer we adjust the default template and rename the command.
— @emilazy in #5676 (comment)
Note
FWIW, I agree @emilazy
It also mildly irks me that the subcommand is
jj backout
while the verb form is two separate words "back out"."Revert" is both more familiar to Git users and a single word in both forms.
— @zx8 in #5676 (comment)
Note
@martinvonz said in #5397 (comment):
Personally I think a little confusion for Mercurial users an acceptable cost for what I think is the better name (we confuse Git users a fair bit already!). I don’t mind
reverse
either, but I think it’s more ambiguous (maybe it could reverse commit ordering?) and the Git terminology is good enough that we can just reuse it.— @emilazy in #5676 (comment)
Looking into things a bit further, StackOverflow conducted a survey in 2023 that revealed around 1% of developers use Mercurial. I don't think this is a compelling enough reason to fumble around trying to find a different name (
reverse
,rollback
,roll-back
, etc. were floated @ #5397 (comment)) to avoid confusing such a small percentage of VCS users.So, what does everyone think about renaming
jj backout
tojj revert
?The text was updated successfully, but these errors were encountered: