Escape \n line returns in .bzr-upload.revid

Bug #701581 reported by Jeff Fortin Tam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr Upload plugin
Won't Fix
Undecided
Unassigned

Bug Description

In some cases, like bzr uploading to a host that already has the files (if it was previously done with rsync for example), you may want to

echo "<email address hidden>" > .bzr-upload.revid

However this won't work, because there is a trailing line return. When you try to bzr upload, you get a bazaar internal error (asking you to file a bug report :) :

NoSuchRevision: KnitPackRepository('file:///foo/.bzr/repository/') has no revision ('<email address hidden>\n',)

Ideally, bzr-upload should strip out the \n.

Revision history for this message
Vincent Ladeuil (vila) wrote :

There is 'echo -n' to *not* add the '\n'.

If you're going to trick bzr-upload though, keep in mind you're on your own, I see no compelling reason to help "cheaters" trigger obscure bugs in the plugin by making their life easier ;)

Changed in bzr-upload:
status: New → Won't Fix
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.