-N as alias for --no-recurse
Bug #945904 reported by
Jelmer Vernooij
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Jelmer Vernooij |
Bug Description
It would be nice to have a short option for --no-recurse, which is fairly long to type.
Other tools (in particular, svn) seem to use -N for this, so it would probably make sense to go with that. We don't seem to have any other meaning for -N yet.
Related branches
lp:~jelmer/bzr/no-recurse-short
- Martin Packman (community): Approve
-
Diff: 62 lines (+13/-4)3 files modifiedbzrlib/builtins.py (+3/-2)
bzrlib/tests/blackbox/test_add.py (+7/-2)
doc/en/release-notes/bzr-2.6.txt (+3/-0)
summary: |
- -N as alias for --no-recuse + -N as alias for --no-recurse |
Changed in bzr: | |
status: | Confirmed → In Progress |
assignee: | nobody → Jelmer Vernooij (jelmer) |
milestone: | none → 2.6b1 |
Changed in bzr: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
As you're building a new project you add a little bit at a time; and I am constantly surprised that "oops!" `bzr add` went deep, especially when you're being careful trying to add the bits you know you should have under version control.
The END RESULT is yes, you might have added everything, but that's not a conclusion you immediately come to, and having added everything recursively by accident be the first experience of using Bazaar is jarring. Worse, you're then left with having to figure out how to undo this unintented action.
The END RESULT after carefully adding lots of things is yes, you might have added everything, but that's not a conclusion you immediately come to.
++
Also things like "yes, I should add the log/ directory as an empty stub... ooops, oh crap" happens a lot.
++
I would recommend changing the default behaviour to be NOT recursive, and adding -R to enable recursion. But failing that, yes a short alias would indeed be lovely.
AfC