equal
deleted
inserted
replaced
3 # This software may be used and distributed according to the terms of the |
3 # This software may be used and distributed according to the terms of the |
4 # GNU General Public License version 2 or any later version. |
4 # GNU General Public License version 2 or any later version. |
5 from mercurial.i18n import _ |
5 from mercurial.i18n import _ |
6 from mercurial import ( |
6 from mercurial import ( |
7 destutil, |
7 destutil, |
8 context, |
|
9 error, |
8 error, |
10 node, |
9 node, |
11 phases, |
10 phases, |
12 obsolete, |
11 obsolete, |
13 util, |
12 util, |
17 MultipleSuccessorsError, |
16 MultipleSuccessorsError, |
18 builddependencies, |
17 builddependencies, |
19 ) |
18 ) |
20 |
19 |
21 short = node.short |
20 short = node.short |
22 |
|
23 # TODO: compat |
|
24 |
|
25 if not util.safehasattr(context.basectx, 'orphan'): |
|
26 context.basectx.orphan = context.basectx.unstable |
|
27 |
|
28 if not util.safehasattr(context.basectx, 'isunstable'): |
|
29 context.basectx.isunstable = context.basectx.troubled |
|
30 |
21 |
31 def parseusername(user): |
22 def parseusername(user): |
32 """parses the ctx user and returns the username without email ID if |
23 """parses the ctx user and returns the username without email ID if |
33 possible, otherwise returns the mail address from that""" |
24 possible, otherwise returns the mail address from that""" |
34 username = None |
25 username = None |