← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~wallyworld/launchpad/hg-code-import-filter into lp:launchpad

 

Ian Booth has proposed merging lp:~wallyworld/launchpad/hg-code-import-filter into lp:launchpad.

Commit message:
A small change to allow obsoleted HG imports to be displayed.

Requested reviews:
  Ian Booth (wallyworld)
Related bugs:
  Bug #1063510 in Launchpad itself: "Remove support for Mecurial imports"
  https://bugs.launchpad.net/launchpad/+bug/1063510

For more details, see:
https://code.launchpad.net/~wallyworld/launchpad/hg-code-import-filter/+merge/129064

A small change to allow obsoleted HG imports to be displayed.
-- 
https://code.launchpad.net/~wallyworld/launchpad/hg-code-import-filter/+merge/129064
Your team Launchpad code reviewers is subscribed to branch lp:launchpad.
=== modified file 'lib/lp/code/model/codeimport.py'
--- lib/lp/code/model/codeimport.py	2012-10-08 02:24:51 +0000
+++ lib/lp/code/model/codeimport.py	2012-10-10 22:30:27 +0000
@@ -115,7 +115,8 @@
             RevisionControlSystems.BZR:
                 config.codeimport.default_interval_bzr,
             }
-        seconds = default_interval_dict[self.rcs_type]
+        # The default can be removed when HG is fully purged.
+        seconds = default_interval_dict.get(self.rcs_type, 21600)
         return timedelta(seconds=seconds)
 
     import_job = Reference("<primary key>", "CodeImportJob.code_importID",
@@ -131,6 +132,7 @@
             RevisionControlSystems.SVN,
             RevisionControlSystems.GIT,
             RevisionControlSystems.BZR_SVN,
+            RevisionControlSystems.HG,
             RevisionControlSystems.BZR):
             return self.url
         else:


Follow ups