/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/uncommit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-07-12 03:22:41 UTC
  • mfrom: (1711.2.86 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060712032241-2352b3ef35093aa1
(jam) minor cleanups, updates to NEWS for bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
"""\
3
 
Remove the last revision from the history of the current branch.
 
1
# Copyright (C) 2006 Canonical Ltd
 
2
#
 
3
# This program is free software; you can redistribute it and/or modify
 
4
# it under the terms of the GNU General Public License as published by
 
5
# the Free Software Foundation; either version 2 of the License, or
 
6
# (at your option) any later version.
 
7
#
 
8
# This program is distributed in the hope that it will be useful,
 
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
# GNU General Public License for more details.
 
12
#
 
13
# You should have received a copy of the GNU General Public License
 
14
# along with this program; if not, write to the Free Software
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
16
 
 
17
"""Remove the last revision from the history of the current branch.
4
18
"""
5
19
 
6
20
import os
7
 
import bzrlib
8
21
from bzrlib.errors import BoundBranchOutOfDate
9
22
 
10
23
def test_remove(filename):
21
34
    :param verbose: Print each step as you do it
22
35
    :param revno: Remove back to this revision
23
36
    """
24
 
    from bzrlib.atomicfile import AtomicFile
25
37
    unlockable = []
26
38
    try:
27
39
        if tree is not None: