Show More
@@ -354,8 +354,9 b' class localrepository:' | |||||
354 | if not path: |
|
354 | if not path: | |
355 | p = os.getcwd() |
|
355 | p = os.getcwd() | |
356 | while not os.path.isdir(os.path.join(p, ".hg")): |
|
356 | while not os.path.isdir(os.path.join(p, ".hg")): | |
|
357 | oldp = p | |||
357 | p = os.path.dirname(p) |
|
358 | p = os.path.dirname(p) | |
358 |
if p == |
|
359 | if p == oldp: raise "No repo found" | |
359 | path = p |
|
360 | path = p | |
360 | self.path = os.path.join(path, ".hg") |
|
361 | self.path = os.path.join(path, ".hg") | |
361 |
|
362 |
General Comments 0
You need to be logged in to leave comments.
Login now