@@ -580,37 +580,37 @@ def obtain(self, dest, url):
580
580
self .name ,
581
581
url ,
582
582
)
583
- response = ask_path_exists ('What to do? {}' .format (
584
- prompt [0 ]), prompt [1 ])
585
-
586
- if response == 'a' :
587
- sys .exit (- 1 )
588
-
589
- if response == 'w' :
590
- logger .warning ('Deleting %s' , display_path (dest ))
591
- rmtree (dest )
592
- self .fetch_new (dest , url , rev_options )
593
- return
594
-
595
- if response == 'b' :
596
- dest_dir = backup_dir (dest )
597
- logger .warning (
598
- 'Backing up %s to %s' , display_path (dest ), dest_dir ,
599
- )
600
- shutil .move (dest , dest_dir )
601
- self .fetch_new (dest , url , rev_options )
602
- return
603
-
604
- # Do nothing if the response is "i".
605
- if response == 's' :
606
- logger .info (
607
- 'Switching %s %s to %s%s' ,
608
- self .repo_name ,
609
- display_path (dest ),
610
- url ,
611
- rev_display ,
612
- )
613
- self .switch (dest , url , rev_options )
583
+ # response = ask_path_exists('What to do? {}'.format(
584
+ # prompt[0]), prompt[1])
585
+
586
+ # if response == 'a':
587
+ # sys.exit(-1)
588
+
589
+ # if response == 'w':
590
+ # logger.warning('Deleting %s', display_path(dest))
591
+ # rmtree(dest)
592
+ # self.fetch_new(dest, url, rev_options)
593
+ # return
594
+
595
+ # if response == 'b':
596
+ # dest_dir = backup_dir(dest)
597
+ # logger.warning(
598
+ # 'Backing up %s to %s', display_path(dest), dest_dir,
599
+ # )
600
+ # shutil.move(dest, dest_dir)
601
+ # self.fetch_new(dest, url, rev_options)
602
+ # return
603
+
604
+ # # Do nothing if the response is "i".
605
+ # if response == 's':
606
+ # logger.info(
607
+ # 'Switching %s %s to %s%s',
608
+ # self.repo_name,
609
+ # display_path(dest),
610
+ # url,
611
+ # rev_display,
612
+ # )
613
+ # self.switch(dest, url, rev_options)
614
614
615
615
def unpack (self , location , url ):
616
616
# type: (str, HiddenText) -> None
0 commit comments