Rev 2950: Re-introduce the None check in case someone asks to uncommit *to* the last revision in http://bzr.arbash-meinel.com/branches/bzr/0.93-dev/uncommit_no_history
John Arbash Meinel
john at arbash-meinel.com
Fri Nov 16 02:15:18 GMT 2007
At http://bzr.arbash-meinel.com/branches/bzr/0.93-dev/uncommit_no_history
------------------------------------------------------------
revno: 2950
revision-id:john at arbash-meinel.com-20071116021134-e0fjjpjllimkhj3v
parent: john at arbash-meinel.com-20071101195357-0wal0m1h8822rzik
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: uncommit_no_history
timestamp: Thu 2007-11-15 20:11:34 -0600
message:
Re-introduce the None check in case someone asks to uncommit *to* the last revision
modified:
bzrlib/builtins.py builtins.py-20050830033751-fc01482b9ca23183
-------------- next part --------------
=== modified file 'bzrlib/builtins.py'
--- a/bzrlib/builtins.py 2007-11-01 19:53:57 +0000
+++ b/bzrlib/builtins.py 2007-11-16 02:11:34 +0000
@@ -3523,7 +3523,7 @@
if revno <= b.revno():
rev_id = b.get_rev_id(revno)
- if _mod_revision.is_null(rev_id):
+ if rev_id is None or _mod_revision.is_null(rev_id):
self.outf.write('No revisions to uncommit.\n')
return 1
More information about the bazaar-commits
mailing list