Svn Rev Keyword Unintentionally Expanded While Bzr Revision-Id Ignored

Bug #716135 reported by user2037
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Keywords Plugin
New
Undecided
Unassigned

Bug Description

Preserving the original, Svn Rev value is important for projects imported or branched from Svn. Adding separate Bzr keywords would be useful if it were expanded instead of the Svn Rev keyword. Unfortunately the opposite is happening with "lp:~anj/bzr-keywords/fix-505038" with data like "$Rev: 123 $ Mod$Revision-Id$".

Please make expansion of Svn keywords optional. And continue searching even after one match is found on the same line.

Perhaps an option to control which keywords are expanded would be more helpful: "keywords = Rev Revision-Id Date Author".

Revision history for this message
user2037 (user2037) wrote :

After further testing it appears my goal can be accomplished through careful configuration of "~/.bazaar/rules" and versioned ".bzrrules" files.

However, when Svn Rev tags are expanded Bzr-keywords appears to be overlooking "$Revision-Id$" tags. This happens regardless of position on the line of content text.

Revision history for this message
user2037 (user2037) wrote :

It appears "svn-keywords = Rev" has 3 interpretations:
 * Rev values expanded like Svn client: ongoing interaction with an Svn repo
 * Rev values replaced with Bzr revision numbers: migrated repo (which will never again talk to the Svn repo) without Bzr Keywords installed
 * Rev values replaced with Bzr revision identifiers: new or migrated repo with Bzr Keywords installed

How would I go about expanding "Rev" keywords like an Svn client (touching the values only when pulling/importing from Svn) and "Revision-Id" like a Bzr client? At present it appears I have to temporarily toggle "svn-keywords" and "keywords" rules.

Revision history for this message
user2037 (user2037) wrote :

Enabling "svn-keywords = Rev" with "keywords = on" collapses Bzr keywords yet never expands them. Even Bzr keywords like "Date" are only collapsed. Perhaps handling of Svn keywords is conflicting with Bzr keywords.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.