Escape \n line returns in .bzr-upload.revid
Bug #701581 reported by
Jeff Fortin Tam
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: KnitPackReposit
Ideally, bzr-upload should strip out the \n.
To post a comment you must log in.
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 ;)