Show More
@@ -298,8 +298,6 b' class localrepository:' | |||||
298 | self.join("undo")) |
|
298 | self.join("undo")) | |
299 |
|
299 | |||
300 | def commit(self, parent, update = None, text = ""): |
|
300 | def commit(self, parent, update = None, text = ""): | |
301 | tr = self.transaction() |
|
|||
302 |
|
||||
303 | try: |
|
301 | try: | |
304 | remove = [ l[:-1] for l in self.opener("to-remove") ] |
|
302 | remove = [ l[:-1] for l in self.opener("to-remove") ] | |
305 | os.unlink(self.join("to-remove")) |
|
303 | os.unlink(self.join("to-remove")) | |
@@ -310,6 +308,12 b' class localrepository:' | |||||
310 | if update == None: |
|
308 | if update == None: | |
311 | update = self.diffdir(self.root, parent)[0] |
|
309 | update = self.diffdir(self.root, parent)[0] | |
312 |
|
310 | |||
|
311 | if not update: | |||
|
312 | self.ui.status("nothing changed\n") | |||
|
313 | return | |||
|
314 | ||||
|
315 | tr = self.transaction() | |||
|
316 | ||||
313 | # check in files |
|
317 | # check in files | |
314 | new = {} |
|
318 | new = {} | |
315 | linkrev = self.changelog.count() |
|
319 | linkrev = self.changelog.count() |
General Comments 0
You need to be logged in to leave comments.
Login now