OLD | NEW |
1 # Copyright (C) 2009 Google Inc. All rights reserved. | 1 # Copyright (C) 2009 Google Inc. All rights reserved. |
2 # Copyright (C) 2009 Apple Inc. All rights reserved. | 2 # Copyright (C) 2009 Apple Inc. All rights reserved. |
3 # Copyright (C) 2011 Daniel Bates (dbates@intudata.com). All rights reserved. | 3 # Copyright (C) 2011 Daniel Bates (dbates@intudata.com). All rights reserved. |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
7 # met: | 7 # met: |
8 # | 8 # |
9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
(...skipping 28 matching lines...) Expand all Loading... |
39 import sys | 39 import sys |
40 import subprocess | 40 import subprocess |
41 import tempfile | 41 import tempfile |
42 import time | 42 import time |
43 import unittest2 as unittest | 43 import unittest2 as unittest |
44 import urllib | 44 import urllib |
45 import shutil | 45 import shutil |
46 | 46 |
47 from datetime import date | 47 from datetime import date |
48 from webkitpy.common.checkout.checkout import Checkout | 48 from webkitpy.common.checkout.checkout import Checkout |
49 from webkitpy.common.config.committers import Committer # FIXME: This should no
t be needed | |
50 from webkitpy.common.net.bugzilla import Attachment # FIXME: This should not be
needed | |
51 from webkitpy.common.system.executive import Executive, ScriptError | 49 from webkitpy.common.system.executive import Executive, ScriptError |
52 from webkitpy.common.system.filesystem_mock import MockFileSystem | 50 from webkitpy.common.system.filesystem_mock import MockFileSystem |
53 from webkitpy.common.system.outputcapture import OutputCapture | 51 from webkitpy.common.system.outputcapture import OutputCapture |
54 from webkitpy.common.system.executive_mock import MockExecutive | 52 from webkitpy.common.system.executive_mock import MockExecutive |
55 from .git import Git, AmbiguousCommitError | 53 from .git import Git, AmbiguousCommitError |
56 from .detection import detect_scm_system | 54 from .detection import detect_scm_system |
57 from .scm import SCM, CheckoutNeedsUpdate, commit_error_handler, AuthenticationE
rror | 55 from .scm import SCM, CheckoutNeedsUpdate, commit_error_handler, AuthenticationE
rror |
58 from .svn import SVN | 56 from .svn import SVN |
59 | 57 |
60 | 58 |
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1639 scm = self.make_scm() | 1637 scm = self.make_scm() |
1640 scm.find_checkout_root = lambda path: '' | 1638 scm.find_checkout_root = lambda path: '' |
1641 scm._run_git = lambda args: 'Date: 2013-02-08 08:05:49 +0000' | 1639 scm._run_git = lambda args: 'Date: 2013-02-08 08:05:49 +0000' |
1642 self.assertEqual(scm.timestamp_of_revision('some-path', '12345'), '2013-
02-08T08:05:49Z') | 1640 self.assertEqual(scm.timestamp_of_revision('some-path', '12345'), '2013-
02-08T08:05:49Z') |
1643 | 1641 |
1644 scm._run_git = lambda args: 'Date: 2013-02-08 01:02:03 +0130' | 1642 scm._run_git = lambda args: 'Date: 2013-02-08 01:02:03 +0130' |
1645 self.assertEqual(scm.timestamp_of_revision('some-path', '12345'), '2013-
02-07T23:32:03Z') | 1643 self.assertEqual(scm.timestamp_of_revision('some-path', '12345'), '2013-
02-07T23:32:03Z') |
1646 | 1644 |
1647 scm._run_git = lambda args: 'Date: 2013-02-08 01:55:21 -0800' | 1645 scm._run_git = lambda args: 'Date: 2013-02-08 01:55:21 -0800' |
1648 self.assertEqual(scm.timestamp_of_revision('some-path', '12345'), '2013-
02-08T09:55:21Z') | 1646 self.assertEqual(scm.timestamp_of_revision('some-path', '12345'), '2013-
02-08T09:55:21Z') |
OLD | NEW |