Show More
@@ -2003,11 +2003,8 b' class localrepository(repo.repository):' | |||||
2003 | cl.finalize(trp) |
|
2003 | cl.finalize(trp) | |
2004 |
|
2004 | |||
2005 | tr.close() |
|
2005 | tr.close() | |
2006 | finally: |
|
|||
2007 | tr.release() |
|
|||
2008 | if lock: |
|
|||
2009 | lock.release() |
|
|||
2010 |
|
2006 | |||
|
2007 | def postaddchangegroup(): | |||
2011 | if changesets > 0: |
|
2008 | if changesets > 0: | |
2012 | # forcefully update the on-disk branch cache |
|
2009 | # forcefully update the on-disk branch cache | |
2013 | self.ui.debug("updating the branch cache\n") |
|
2010 | self.ui.debug("updating the branch cache\n") | |
@@ -2016,8 +2013,14 b' class localrepository(repo.repository):' | |||||
2016 | source=srctype, url=url) |
|
2013 | source=srctype, url=url) | |
2017 |
|
2014 | |||
2018 | for n in added: |
|
2015 | for n in added: | |
2019 |
self.hook("incoming", node=hex(n), source=srctype, |
|
2016 | self.hook("incoming", node=hex(n), source=srctype, | |
|
2017 | url=url) | |||
|
2018 | self._postrelease(postaddchangegroup) | |||
2020 |
|
2019 | |||
|
2020 | finally: | |||
|
2021 | tr.release() | |||
|
2022 | if lock: | |||
|
2023 | lock.release() | |||
2021 | # never return 0 here: |
|
2024 | # never return 0 here: | |
2022 | if dh < 0: |
|
2025 | if dh < 0: | |
2023 | return dh - 1 |
|
2026 | return dh - 1 |
General Comments 0
You need to be logged in to leave comments.
Login now