mercurial/commands.py
changeset 547 4fc63e22b1fe
parent 537 411e05b04ffa
parent 546 c8ae964109c1
child 549 92b60cabf808
child 552 2204311609a0
equal deleted inserted replaced
540:53872e2be33a 547:4fc63e22b1fe
   135     description = changes[4].strip()
   135     description = changes[4].strip()
   136     if description:
   136     if description:
   137         if ui.verbose:
   137         if ui.verbose:
   138             ui.status("description:\n")
   138             ui.status("description:\n")
   139             ui.status(description)
   139             ui.status(description)
   140             ui.status("\n")
   140             ui.status("\n\n")
   141         else:
   141         else:
   142             ui.status("summary:     %s\n" % description.splitlines()[0])
   142             ui.status("summary:     %s\n" % description.splitlines()[0])
   143     ui.status("\n")
   143     ui.status("\n")
   144 
   144 
   145 def show_version(ui):
   145 def show_version(ui):
   293                 shutil.rmtree(self.dir, True)
   293                 shutil.rmtree(self.dir, True)
   294 
   294 
   295     d = dircleanup(dest)
   295     d = dircleanup(dest)
   296 
   296 
   297     link = 0
   297     link = 0
   298     if not source.startswith("http://"):
   298     if not (source.startswith("http://") or
       
   299             source.startswith("hg://") or
       
   300             source.startswith("old-http://")):
   299         d1 = os.stat(dest).st_dev
   301         d1 = os.stat(dest).st_dev
   300         d2 = os.stat(source).st_dev
   302         d2 = os.stat(source).st_dev
   301         if d1 == d2: link = 1
   303         if d1 == d2: link = 1
   302 
   304 
   303     if link:
   305     if link: