##// END OF EJS Templates
strip: move attributes shortcut assigned earlier...
Boris Feld -
r41131:cfd95219 default
parent child Browse files
Show More
@@ -108,8 +108,9 b' def strip(ui, repo, nodelist, backup=Tru'
108
108
109 repo = repo.unfiltered()
109 repo = repo.unfiltered()
110 repo.destroying()
110 repo.destroying()
111 vfs = repo.vfs
112 cl = repo.changelog
111
113
112 cl = repo.changelog
113 # TODO handle undo of merge sets
114 # TODO handle undo of merge sets
114 if isinstance(nodelist, str):
115 if isinstance(nodelist, str):
115 nodelist = [nodelist]
116 nodelist = [nodelist]
@@ -169,7 +170,6 b' def strip(ui, repo, nodelist, backup=Tru'
169
170
170 # create a changegroup for all the branches we need to keep
171 # create a changegroup for all the branches we need to keep
171 backupfile = None
172 backupfile = None
172 vfs = repo.vfs
173 node = nodelist[-1]
173 node = nodelist[-1]
174 if backup:
174 if backup:
175 backupfile = backupbundle(repo, stripbases, cl.heads(), node, topic)
175 backupfile = backupbundle(repo, stripbases, cl.heads(), node, topic)
General Comments 0
You need to be logged in to leave comments. Login now