Show More
@@ -1861,6 +1861,7 class localrepository(object): | |||||
1861 | if not remote.canpush(): |
|
1861 | if not remote.canpush(): | |
1862 | raise util.Abort(_("destination does not support push")) |
|
1862 | raise util.Abort(_("destination does not support push")) | |
1863 | # get local lock as we might write phase data |
|
1863 | # get local lock as we might write phase data | |
|
1864 | unfi = self.unfiltered() | |||
1864 | locallock = self.lock() |
|
1865 | locallock = self.lock() | |
1865 | try: |
|
1866 | try: | |
1866 | self.checkpush(force, revs) |
|
1867 | self.checkpush(force, revs) | |
@@ -1869,7 +1870,6 class localrepository(object): | |||||
1869 | if not unbundle: |
|
1870 | if not unbundle: | |
1870 | lock = remote.lock() |
|
1871 | lock = remote.lock() | |
1871 | try: |
|
1872 | try: | |
1872 | unfi = self.unfiltered() |
|
|||
1873 | # discovery |
|
1873 | # discovery | |
1874 | fci = discovery.findcommonincoming |
|
1874 | fci = discovery.findcommonincoming | |
1875 | commoninc = fci(unfi, remote, force=force) |
|
1875 | commoninc = fci(unfi, remote, force=force) | |
@@ -2012,12 +2012,12 class localrepository(object): | |||||
2012 | self.ui.debug("checking for updated bookmarks\n") |
|
2012 | self.ui.debug("checking for updated bookmarks\n") | |
2013 | rb = remote.listkeys('bookmarks') |
|
2013 | rb = remote.listkeys('bookmarks') | |
2014 | for k in rb.keys(): |
|
2014 | for k in rb.keys(): | |
2015 |
if k in |
|
2015 | if k in unfi._bookmarks: | |
2016 | nr, nl = rb[k], hex(self._bookmarks[k]) |
|
2016 | nr, nl = rb[k], hex(self._bookmarks[k]) | |
2017 |
if nr in |
|
2017 | if nr in unfi: | |
2018 |
cr = |
|
2018 | cr = unfi[nr] | |
2019 |
cl = |
|
2019 | cl = unfi[nl] | |
2020 |
if bookmarks.validdest( |
|
2020 | if bookmarks.validdest(unfi, cr, cl): | |
2021 | r = remote.pushkey('bookmarks', k, nr, nl) |
|
2021 | r = remote.pushkey('bookmarks', k, nr, nl) | |
2022 | if r: |
|
2022 | if r: | |
2023 | self.ui.status(_("updating bookmark %s\n") % k) |
|
2023 | self.ui.status(_("updating bookmark %s\n") % k) |
General Comments 0
You need to be logged in to leave comments.
Login now