Mercurial > hg
comparison hgext/mq.py @ 4016:a195f11ed1a2
sync with -stable
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 02 Jan 2007 22:40:52 +0100 |
parents | 714fbfe5c9e5 6e0cb0790e23 |
children | bbdba01cce28 |
comparison
equal
deleted
inserted
replaced
4007:20da40cc1c73 | 4016:a195f11ed1a2 |
---|---|
696 backupch = repo.changegroupsubset([rev], chlog.heads(), 'strip') | 696 backupch = repo.changegroupsubset([rev], chlog.heads(), 'strip') |
697 bundle(backupch) | 697 bundle(backupch) |
698 if saveheads: | 698 if saveheads: |
699 backupch = repo.changegroupsubset(savebases.keys(), saveheads, 'strip') | 699 backupch = repo.changegroupsubset(savebases.keys(), saveheads, 'strip') |
700 chgrpfile = bundle(backupch) | 700 chgrpfile = bundle(backupch) |
701 chgrpfile = 'file:%s' % chgrpfile | |
702 | 701 |
703 stripall(revnum) | 702 stripall(revnum) |
704 | 703 |
705 change = chlog.read(rev) | 704 change = chlog.read(rev) |
706 chlog.strip(revnum, revnum) | 705 chlog.strip(revnum, revnum) |
707 repo.manifest.strip(repo.manifest.rev(change[0]), revnum) | 706 repo.manifest.strip(repo.manifest.rev(change[0]), revnum) |
708 if saveheads: | 707 if saveheads: |
709 self.ui.status("adding branch\n") | 708 self.ui.status("adding branch\n") |
710 commands.unbundle(self.ui, repo, chgrpfile, update=False) | 709 commands.unbundle(self.ui, repo, "file:%s" % chgrpfile, |
710 update=False) | |
711 if backup != "strip": | 711 if backup != "strip": |
712 os.unlink(chgrpfile) | 712 os.unlink(chgrpfile) |
713 | 713 |
714 def isapplied(self, patch): | 714 def isapplied(self, patch): |
715 """returns (index, rev, patch)""" | 715 """returns (index, rev, patch)""" |