Merge lp:~chy-causer/bzr-bookmarks/short-form into lp:bzr-bookmarks
Status: | Work in progress |
---|---|
Proposed branch: | lp:~chy-causer/bzr-bookmarks/short-form |
Merge into: | lp:bzr-bookmarks |
Diff against target: |
11 lines (+3/-0) 1 file modified
__init__.py (+3/-0) |
To merge this branch: | bzr merge lp:~chy-causer/bzr-bookmarks/short-form |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij (community) | Needs Fixing | ||
Review via email: mp+73352@code.launchpad.net |
Description of the change
This is a very small change that I find useful. Basically if I issue the command,
$ bzr bookmark wibble .
I expect the bookmark wibble to refer to the branch at $PWD at the time of inserting the bookmark, rather than at the time of dereferencing it.
Like before, the plugin makes no check for the presence of a branch at the location, but I think this new behaviour is more intuitive and useful to others.
This will not do anything for people who have already bookmarked "." or for example "../../trunk", although it may be potentially confusing if they bookmark something again in future expecting the same result (which incidentally, in the case of the latter example is a silly usecase because the dereferencing command would have to be given in the same directory as when the bookmark insertion was made.) I'm not sure what to do about that.
Hi Chris,
Rather than doing this in just one of the backends, I think this should be handled by the caller of .set_location.