Commits

Diego Búrigo Zacarão committed 64a3a0a

Switched use of 'tip' to 'default' for main HG branch

- It's not a good practice using 'tip' as the main branch
- Mercurial guys suggested us to use 'default' instead

  • Participants
  • Parent commits 1ef21f1

Comments (0)

Files changed (2)

File transifex/tarball/lib/types/tar.py

         codebase_path = settings.REPO_PATHS['tar']
         
         self.root = root
-        self.branch = 'tip'
+        self.branch = 'default'
         
         self.path = os.path.normpath(os.path.join(
             codebase_path, name))

File transifex/vcs/lib/types/hg.py

     Mercurial homepage: http://www.selenic.com/mercurial/
 
     >>> b = HgBrowser(root='http://code.transifex.org/transifex',
-    ... name='test-hg', branch='tip')
-    >>> HgBrowser(root='foo', name='../..', branch='tip')
+    ... name='test-hg', branch='default')
+    >>> HgBrowser(root='foo', name='../..', branch='default')
     Traceback (most recent call last):
       ...
     AssertionError: Unit checkout path outside of nominal repo checkout path.
     """
 
    
-    def __init__(self, root, name=None, branch='tip'):
+    def __init__(self, root, name=None, branch='default'):
         # If name isn't given, let's take the last part of the root
         # Eg. root = 'http://example.com/foo/baz' -> name='baz'
         if not name: