Merge lp:~parthm/bzr/405192-get_nick-recursion-2.2 into lp:bzr/2.2
Proposed by
Parth Malwankar
Status: | Merged |
---|---|
Approved by: | John A Meinel |
Approved revision: | no longer in the source branch. |
Merged at revision: | 5057 |
Proposed branch: | lp:~parthm/bzr/405192-get_nick-recursion-2.2 |
Merge into: | lp:bzr/2.2 |
Diff against target: |
110 lines (+40/-0) 5 files modified
NEWS (+3/-0) bzrlib/branch.py (+4/-0) bzrlib/errors.py (+11/-0) bzrlib/tests/blackbox/test_commit.py (+16/-0) bzrlib/tests/test_errors.py (+6/-0) |
To merge this branch: | bzr merge lp:~parthm/bzr/405192-get_nick-recursion-2.2 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Parth Malwankar | Approve | ||
John A Meinel | Approve | ||
Review via email: mp+29841@code.launchpad.net |
Commit message
Detect recursive binding for checkouts and give a clear error message to user. (#405192)
Description of the change
=== Fixes bug #405192 ===
This patch fixes branch._get_nick to detect recursive binding and give a clear error message to the user.
Sample output:
[bzr-grep-
bzr: ERROR: Recursive binding detected.
Use `bzr info` to verify and `bzr unbind|bind` to fix.
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Parth Malwankar wrote: /bugs.launchpad .net/bugs/ 405192 checkout] % ~/src/bzr. dev/405192- get_nick- recursion- 2.2/bzr ci -m "added z"
> Parth Malwankar has proposed merging lp:~parthm/bzr/405192-get_nick-recursion-2.2 into lp:bzr/2.2.
>
> Requested reviews:
> bzr-core (bzr-core)
> Related bugs:
> #405192 Self-bound checkouts errors with infinite recursion in _get_nick
> https:/
>
>
> === Fixes bug #405192 ===
> This patch fixes branch._get_nick to detect recursive binding and give a clear error message to the user.
>
> Sample output:
> [bzr-grep-
> bzr: ERROR: Recursive binding detected.
> Use `bzr info` to verify and `bzr unbind|bind` to fix.
I would probably change the error message a little bit. Something like:
"Branch %s appears to be bound to itself, please unbind"
Otherwise the user doesn't really know any more about what to do, or
what branch is actually involved. (lightweight checkouts of a bound
branch, etc.)
Otherwise, looks good to me.
review: needsfixing
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
9d5QACgkQJdeBCY SNAAP3fwCeNwz3W U3UUklUhpJgiFkI uCUg 2HSikVp7dUUy0se UR
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkw
kO4AoNezZxiyaXh
=AUlG
-----END PGP SIGNATURE-----