Merge lp:~robertminsk/bzr-keywords/more-keywords-updated into lp:bzr-keywords
Status: | Work in progress |
---|---|
Proposed branch: | lp:~robertminsk/bzr-keywords/more-keywords-updated |
Merge into: | lp:bzr-keywords |
Diff against target: |
181 lines (+89/-18) 2 files modified
__init__.py (+39/-18) keywords.py (+50/-0) |
To merge this branch: | bzr merge lp:~robertminsk/bzr-keywords/more-keywords-updated |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij (community) | Needs Fixing | ||
Review via email:
|
Description of the change
An updated version of more-keywords since the other branch has not been updated in over a year. This version has been updated to work with revision 18 of the trunk. It adds the following keywords:
Revision-Number - revision number that last changed the file.
Branch-Revision-Id - current unique id of the revision on the branch
Branch-
Revid - an alias for Revision-Id
Revno - an alias for Revision-Number
Branch-Revid - an alias for Branch-Revision-Id
Branch-Revno - an alias for Branch-
All the real credit for this goes to user dmitrij.ledkov
Unmerged revisions
- 22. By Robert Minsk <email address hidden>
-
Removed the post_change_
branch_ tip hook on advice from Jelmer - 21. By Robert Minsk <email address hidden>
-
Added aliases Revid, Revno, Branch-Revid, Branch-Revno
- 20. By Robert Minsk <email address hidden>
-
Added support for --revision command line option.
- 19. By Robert Minsk <email address hidden>
-
Porting of more-keywords to the latest branch
This looks reasonable, except for the post_change_ branch_ tip hook:
* It adds a significant overhead to all operations that change the branch (push, pull, commit, ...)
* It assumes the tree uses inventories
* It writes directly to the working tree without locking files
I'm also not sure that it's actually necessary to have this hook.